From aa89e4791aa77d2542fa561c06bc9562389b2567 Mon Sep 17 00:00:00 2001 From: Stefan Pejcic Date: Mon, 23 Dec 2024 17:19:25 +0100 Subject: [PATCH] Update entrypoint.sh --- docker/ubuntu_openlitespeed_mysql/entrypoint.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docker/ubuntu_openlitespeed_mysql/entrypoint.sh b/docker/ubuntu_openlitespeed_mysql/entrypoint.sh index 5759c59a..e199ad3e 100644 --- a/docker/ubuntu_openlitespeed_mysql/entrypoint.sh +++ b/docker/ubuntu_openlitespeed_mysql/entrypoint.sh @@ -100,11 +100,10 @@ fi chown 994:994 /usr/local/lsws/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 [ "$(ls -A $sites_available_dir | grep -v 'default.conf')" ]; then +if [ "$(ls $sites_available_dir/*.conf 2>/dev/null)" ]; then #service lsws start /usr/local/lsws/bin/lswsctrl start echo "Litespeed service started."