mirror of
https://github.com/EpicMorg/docker-scripts.git
synced 2024-12-25 14:15:38 +03:00
apache2 startup fix
This commit is contained in:
parent
6df47829b3
commit
0f45904f2e
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user