Run fix ssl directive only on Deb9 and Deb10

This commit is contained in:
myvesta 2020-06-12 17:40:48 +02:00 committed by GitHub
parent bf4eb9aa4b
commit fd49534c2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,11 +15,12 @@ if [ "$release" -eq 9 ] || [ "$release" -eq 10 ]; then
sed -i "s|ssl *on;|#ssl_on;|g" $FILE
fi
done
fi
for user in $(grep '@' /etc/passwd |cut -f1 -d:); do
if [ ! -f "/usr/local/vesta/data/users/$user/user.conf" ]; then
continue;
fi
v-rebuild-web-domains $user 'no'
done
for user in $(grep '@' /etc/passwd |cut -f1 -d:); do
if [ ! -f "/usr/local/vesta/data/users/$user/user.conf" ]; then
continue;
fi
v-rebuild-web-domains $user 'no'
done
fi