apache2 startup fix

This commit is contained in:
Anatolii Zimovskii 2022-01-25 15:29:43 +03:00
parent 6df47829b3
commit 0f45904f2e
Signed by: stam
GPG Key ID: AA3A575AB99E8469
5 changed files with 70 additions and 15 deletions

View File

@ -1,7 +1,18 @@
#!/bin/bash #!/bin/bash
echo "Changing permissions for /var/www path. Dont worry, please wait."
if [[ -z "${FIX_WWW_DATA}" ]]; then
echo "[apache2] env FIX_WWW_DATA is not set. Skipping..."
elif [ "${FIX_WWW_DATA}" == "false" ]; then
echo "[apache2] env FIX_WWW_DATA is set to false. Skipping..."
elif [ "${FIX_WWW_DATA}" == "true" ]; then
echo "[apache2] Changing permissions for /var/www path. Dont worry, please wait."
chown www-data:www-data /var/www -R chown www-data:www-data /var/www -R
echo "Done. Starting up" echo "[apache2] Done"
else
echo "[apache2] env FIX_WWW_DATA is set to strange value. Skipping..."
fi
echo "[apache2] Starting up"
source /etc/apache2/envvars source /etc/apache2/envvars
tail -F /var/log/apache2/* & tail -F /var/log/apache2/* &
exec apache2 -D FOREGROUND exec apache2 -D FOREGROUND

View File

@ -1,7 +1,18 @@
#!/bin/bash #!/bin/bash
echo "Changing permissions for /var/www path. Dont worry, please wait."
if [[ -z "${FIX_WWW_DATA}" ]]; then
echo "[apache2] env FIX_WWW_DATA is not set. Skipping..."
elif [ "${FIX_WWW_DATA}" == "false" ]; then
echo "[apache2] env FIX_WWW_DATA is set to false. Skipping..."
elif [ "${FIX_WWW_DATA}" == "true" ]; then
echo "[apache2] Changing permissions for /var/www path. Dont worry, please wait."
chown www-data:www-data /var/www -R chown www-data:www-data /var/www -R
echo "Done. Starting up" echo "[apache2] Done"
else
echo "[apache2] env FIX_WWW_DATA is set to strange value. Skipping..."
fi
echo "[apache2] Starting up"
source /etc/apache2/envvars source /etc/apache2/envvars
tail -F /var/log/apache2/* & tail -F /var/log/apache2/* &
exec apache2 -D FOREGROUND exec apache2 -D FOREGROUND

View File

@ -1,7 +1,18 @@
#!/bin/bash #!/bin/bash
echo "Changing permissions for /var/www path. Dont worry, please wait."
if [[ -z "${FIX_WWW_DATA}" ]]; then
echo "[apache2] env FIX_WWW_DATA is not set. Skipping..."
elif [ "${FIX_WWW_DATA}" == "false" ]; then
echo "[apache2] env FIX_WWW_DATA is set to false. Skipping..."
elif [ "${FIX_WWW_DATA}" == "true" ]; then
echo "[apache2] Changing permissions for /var/www path. Dont worry, please wait."
chown www-data:www-data /var/www -R chown www-data:www-data /var/www -R
echo "Done. Starting up" echo "[apache2] Done"
else
echo "[apache2] env FIX_WWW_DATA is set to strange value. Skipping..."
fi
echo "[apache2] Starting up"
source /etc/apache2/envvars source /etc/apache2/envvars
tail -F /var/log/apache2/* & tail -F /var/log/apache2/* &
exec apache2 -D FOREGROUND exec apache2 -D FOREGROUND

View File

@ -1,7 +1,18 @@
#!/bin/bash #!/bin/bash
echo "Changing permissions for /var/www path. Dont worry, please wait."
if [[ -z "${FIX_WWW_DATA}" ]]; then
echo "[apache2] env FIX_WWW_DATA is not set. Skipping..."
elif [ "${FIX_WWW_DATA}" == "false" ]; then
echo "[apache2] env FIX_WWW_DATA is set to false. Skipping..."
elif [ "${FIX_WWW_DATA}" == "true" ]; then
echo "[apache2] Changing permissions for /var/www path. Dont worry, please wait."
chown www-data:www-data /var/www -R chown www-data:www-data /var/www -R
echo "Done. Starting up" echo "[apache2] Done"
else
echo "[apache2] env FIX_WWW_DATA is set to strange value. Skipping..."
fi
echo "[apache2] Starting up"
source /etc/apache2/envvars source /etc/apache2/envvars
tail -F /var/log/apache2/* & tail -F /var/log/apache2/* &
exec apache2 -D FOREGROUND exec apache2 -D FOREGROUND

View File

@ -1,7 +1,18 @@
#!/bin/bash #!/bin/bash
echo "Changing permissions for /var/www path. Dont worry, please wait."
if [[ -z "${FIX_WWW_DATA}" ]]; then
echo "[apache2] env FIX_WWW_DATA is not set. Skipping..."
elif [ "${FIX_WWW_DATA}" == "false" ]; then
echo "[apache2] env FIX_WWW_DATA is set to false. Skipping..."
elif [ "${FIX_WWW_DATA}" == "true" ]; then
echo "[apache2] Changing permissions for /var/www path. Dont worry, please wait."
chown www-data:www-data /var/www -R chown www-data:www-data /var/www -R
echo "Done. Starting up" echo "[apache2] Done"
else
echo "[apache2] env FIX_WWW_DATA is set to strange value. Skipping..."
fi
echo "[apache2] Starting up"
source /etc/apache2/envvars source /etc/apache2/envvars
tail -F /var/log/apache2/* & tail -F /var/log/apache2/* &
exec apache2 -D FOREGROUND exec apache2 -D FOREGROUND