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
90f38213e9
commit
385e9d832a
@ -116,16 +116,13 @@ chmod 700 /etc/apache2/sites-enabled
|
||||
|
||||
sites_available_dir="/etc/apache2/sites-available"
|
||||
|
||||
if [ "$(grep 'OLD_IP="tst"' /etc/entrypoint.sh)" ]; then
|
||||
echo "Apache is not started, since there are no websites yet."
|
||||
else
|
||||
# if there are any sites, start the service
|
||||
if [ "$(ls -A $sites_available_dir | grep -v 'default')" ]; then
|
||||
|
||||
# if there are any sites, start the service
|
||||
if [ "$(ls -A $sites_available_dir | grep -v 'default')" ]; then
|
||||
service apache2 start
|
||||
echo "Apache service started."
|
||||
else
|
||||
else
|
||||
echo "No websites found in $sites_available_dir. Apache service not started automatically."
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user