-
-
Notifications
You must be signed in to change notification settings - Fork 304
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: nachoparker <nacho@ownyourbits.com>
- Loading branch information
1 parent
84e6b4e
commit 0a97f77
Showing
3 changed files
with
35 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/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 & | ||
} | ||
|
||
# docker images only | ||
[[ -f /.docker-image ]] && { | ||
: | ||
} | ||
|
||
# for non docker images | ||
[[ ! -f /.docker-image ]] && { | ||
: | ||
} | ||
|
||
exit 0 |