diff options
Diffstat (limited to 'updates/1.25.0.sh')
-rw-r--r-- | updates/1.25.0.sh | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/updates/1.25.0.sh b/updates/1.25.0.sh new file mode 100644 index 00000000..3b042d16 --- /dev/null +++ b/updates/1.25.0.sh @@ -0,0 +1,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 |