Update entrypoint.sh

This commit is contained in:
Stefan Pejcic 2024-12-23 17:19:25 +01:00 committed by GitHub
parent 94786bcc69
commit aa89e4791a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -100,11 +100,10 @@ fi
chown 994:994 /usr/local/lsws/conf -R chown 994:994 /usr/local/lsws/conf -R
chown 994:1001 /usr/local/lsws/admin/conf -R chown 994:1001 /usr/local/lsws/admin/conf -R
sites_available_dir="/usr/local/lsws/conf" sites_available_dir="/usr/local/lsws/conf/vhosts"
# if there are any sites, start the service # if there are any sites, start the service
if [ "$(ls -A $sites_available_dir | grep -v 'default.conf')" ]; then if [ "$(ls $sites_available_dir/*.conf 2>/dev/null)" ]; then
#service lsws start #service lsws start
/usr/local/lsws/bin/lswsctrl start /usr/local/lsws/bin/lswsctrl start
echo "Litespeed service started." echo "Litespeed service started."