Update fix_ssl_directive_in_templates.sh

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

View file

@ -15,12 +15,15 @@ if [ "$release" -eq 9 ] || [ "$release" -eq 10 ]; then
sed -i "s|ssl *on;|#ssl_on;|g" $FILE
fi
done
source /etc/profile
PATH=$PATH:/usr/local/vesta/bin && export PATH
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'
/usr/local/vesta/bin/v-rebuild-web-domains $user 'no'
done
fi