mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
Update entrypoint.sh
This commit is contained in:
parent
94786bcc69
commit
aa89e4791a
@ -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."
|
||||||
|
Loading…
Reference in New Issue
Block a user