Welcome to mirror list, hosted at ThFree Co, Russian Federation.

1.25.0.sh « updates - github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3b042d16cd3e495f84ccace3d57388579c3e3554 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash

set -e

## BACKWARD FIXES ( for older images )

source /usr/local/etc/library.sh # sets NCVER PHPVER RELEASE

# all images

# disable old TLS versions
file=/etc/apache2/conf-available/http2.conf
grep -q '^SSLProtocol all -SSLv2 -SSLv3' "${file}" && {
  sed -i 's|^SSLProtocol .*|SSLProtocol -all +TLSv1.2|' "${file}"
  bash -c "sleep 10 && service apache2 reload" &>/dev/null &
}

# fix nc-backup-auto
is_active_app nc-backup-auto && run_app nc-backup-auto

# docker images only
[[ -f /.docker-image ]] && {
  :
}

# for non docker images
[[ ! -f /.docker-image ]] && {
  :
}

exit 0