mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 13:01:52 -07:00
Run fix ssl directive only on Deb9 and Deb10
This commit is contained in:
parent
84a9df6a58
commit
bf4eb9aa4b
1 changed files with 8 additions and 4 deletions
|
@ -3,6 +3,8 @@
|
||||||
build_date=$(curl -s http://c.myvestacp.com/build_date.txt)
|
build_date=$(curl -s http://c.myvestacp.com/build_date.txt)
|
||||||
echo "$build_date" > /usr/local/vesta/build_date.txt
|
echo "$build_date" > /usr/local/vesta/build_date.txt
|
||||||
|
|
||||||
|
release=$(cat /etc/debian_version | tr "." "\n" | head -n1)
|
||||||
|
|
||||||
# Run triggers only on updates
|
# Run triggers only on updates
|
||||||
if [ ! -e "/usr/local/vesta/data/users/admin" ]; then
|
if [ ! -e "/usr/local/vesta/data/users/admin" ]; then
|
||||||
version=$(curl -s http://c.myvestacp.com/latest.txt?installed)
|
version=$(curl -s http://c.myvestacp.com/latest.txt?installed)
|
||||||
|
@ -119,10 +121,12 @@ if [ ! -f "/usr/local/vesta/data/upgrades/keeping-mpm-event" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Fixing ssl directive in nginx templates
|
# Fixing ssl directive in nginx templates
|
||||||
if [ ! -f "/usr/local/vesta/data/upgrades/fix_ssl_directive_in_templates" ]; then
|
if [ "$release" -eq 9 ] || [ "$release" -eq 10 ]; then
|
||||||
touch /usr/local/vesta/data/upgrades/fix_ssl_directive_in_templates
|
if [ ! -f "/usr/local/vesta/data/upgrades/fix_ssl_directive_in_templates" ]; then
|
||||||
echo "=== Fixing ssl directive in nginx templates"
|
touch /usr/local/vesta/data/upgrades/fix_ssl_directive_in_templates
|
||||||
bash /usr/local/vesta/upd/fix_ssl_directive_in_templates.sh
|
echo "=== Fixing ssl directive in nginx templates"
|
||||||
|
bash /usr/local/vesta/upd/fix_ssl_directive_in_templates.sh
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Block executable files inside zip/rar/tar archives in ClamAV
|
# Block executable files inside zip/rar/tar archives in ClamAV
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue