mirror of
https://github.com/EpicMorg/docker-scripts.git
synced 2024-12-25 06:05:37 +03:00
web fixes
This commit is contained in:
parent
58e38450a8
commit
ec2a1ea370
@ -94,7 +94,7 @@ RUN updatedb
|
||||
RUN chown -Rf www-data:www-data /var/www
|
||||
|
||||
#Final config
|
||||
VOLUME ["/var/www"]
|
||||
VOLUME ["/var/www", "/var/log/apache2", "/var/run/apache2"]
|
||||
WORKDIR /var/www/
|
||||
EXPOSE 80 443
|
||||
|
||||
|
@ -1,18 +1,42 @@
|
||||
#!/bin/bash
|
||||
|
||||
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
|
||||
echo "[apache2] Done"
|
||||
else
|
||||
echo "[apache2] env FIX_WWW_DATA is set to strange value. Skipping..."
|
||||
fi
|
||||
set -e
|
||||
|
||||
echo "[apache2] Starting up"
|
||||
source /etc/apache2/envvars
|
||||
|
||||
case "${FIX_WWW_DATA}" in
|
||||
"")
|
||||
echo "[apache2] env FIX_WWW_DATA is not set. Skipping..."
|
||||
;;
|
||||
"false")
|
||||
echo "[apache2] env FIX_WWW_DATA is set to false. Skipping..."
|
||||
;;
|
||||
"true")
|
||||
echo "[apache2] Changing permissions for /var/www path. Please wait."
|
||||
if [ -d "/var/www" ]; then
|
||||
chown www-data:www-data /var/www -R
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "[apache2] Permissions changed successfully."
|
||||
else
|
||||
echo "[apache2] Error changing permissions for /var/www."
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
echo "[apache2] /var/www directory not found. Skipping permission change."
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "[apache2] env FIX_WWW_DATA is set to an invalid value. Skipping..."
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -f /etc/apache2/envvars ]; then
|
||||
source /etc/apache2/envvars
|
||||
else
|
||||
echo "[apache2] Warning: /etc/apache2/envvars not found."
|
||||
fi
|
||||
|
||||
tail -F /var/log/apache2/* &
|
||||
|
||||
echo "[apache2] Starting Apache in the foreground."
|
||||
exec apache2 -D FOREGROUND
|
||||
|
@ -93,7 +93,7 @@ RUN updatedb
|
||||
RUN chown -Rf www-data:www-data /var/www
|
||||
|
||||
#Final config
|
||||
VOLUME ["/var/www"]
|
||||
VOLUME ["/var/www", "/var/log/apache2", "/var/run/apache2"]
|
||||
WORKDIR /var/www/
|
||||
EXPOSE 80 443
|
||||
|
||||
|
@ -1,18 +1,42 @@
|
||||
#!/bin/bash
|
||||
|
||||
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
|
||||
echo "[apache2] Done"
|
||||
else
|
||||
echo "[apache2] env FIX_WWW_DATA is set to strange value. Skipping..."
|
||||
fi
|
||||
set -e
|
||||
|
||||
echo "[apache2] Starting up"
|
||||
source /etc/apache2/envvars
|
||||
|
||||
case "${FIX_WWW_DATA}" in
|
||||
"")
|
||||
echo "[apache2] env FIX_WWW_DATA is not set. Skipping..."
|
||||
;;
|
||||
"false")
|
||||
echo "[apache2] env FIX_WWW_DATA is set to false. Skipping..."
|
||||
;;
|
||||
"true")
|
||||
echo "[apache2] Changing permissions for /var/www path. Please wait."
|
||||
if [ -d "/var/www" ]; then
|
||||
chown www-data:www-data /var/www -R
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "[apache2] Permissions changed successfully."
|
||||
else
|
||||
echo "[apache2] Error changing permissions for /var/www."
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
echo "[apache2] /var/www directory not found. Skipping permission change."
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "[apache2] env FIX_WWW_DATA is set to an invalid value. Skipping..."
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -f /etc/apache2/envvars ]; then
|
||||
source /etc/apache2/envvars
|
||||
else
|
||||
echo "[apache2] Warning: /etc/apache2/envvars not found."
|
||||
fi
|
||||
|
||||
tail -F /var/log/apache2/* &
|
||||
|
||||
echo "[apache2] Starting Apache in the foreground."
|
||||
exec apache2 -D FOREGROUND
|
||||
|
@ -126,7 +126,7 @@ RUN updatedb
|
||||
RUN chown -Rf www-data:www-data /var/www
|
||||
|
||||
#Final config
|
||||
VOLUME ["/var/www"]
|
||||
VOLUME ["/var/www", "/var/log/apache2", "/var/run/apache2"]
|
||||
WORKDIR /var/www/
|
||||
EXPOSE 80 443
|
||||
|
||||
|
@ -1,18 +1,42 @@
|
||||
#!/bin/bash
|
||||
|
||||
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
|
||||
echo "[apache2] Done"
|
||||
else
|
||||
echo "[apache2] env FIX_WWW_DATA is set to strange value. Skipping..."
|
||||
fi
|
||||
set -e
|
||||
|
||||
echo "[apache2] Starting up"
|
||||
source /etc/apache2/envvars
|
||||
|
||||
case "${FIX_WWW_DATA}" in
|
||||
"")
|
||||
echo "[apache2] env FIX_WWW_DATA is not set. Skipping..."
|
||||
;;
|
||||
"false")
|
||||
echo "[apache2] env FIX_WWW_DATA is set to false. Skipping..."
|
||||
;;
|
||||
"true")
|
||||
echo "[apache2] Changing permissions for /var/www path. Please wait."
|
||||
if [ -d "/var/www" ]; then
|
||||
chown www-data:www-data /var/www -R
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "[apache2] Permissions changed successfully."
|
||||
else
|
||||
echo "[apache2] Error changing permissions for /var/www."
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
echo "[apache2] /var/www directory not found. Skipping permission change."
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "[apache2] env FIX_WWW_DATA is set to an invalid value. Skipping..."
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -f /etc/apache2/envvars ]; then
|
||||
source /etc/apache2/envvars
|
||||
else
|
||||
echo "[apache2] Warning: /etc/apache2/envvars not found."
|
||||
fi
|
||||
|
||||
tail -F /var/log/apache2/* &
|
||||
|
||||
echo "[apache2] Starting Apache in the foreground."
|
||||
exec apache2 -D FOREGROUND
|
||||
|
@ -126,7 +126,7 @@ RUN updatedb
|
||||
RUN chown -Rf www-data:www-data /var/www
|
||||
|
||||
#Final config
|
||||
VOLUME ["/var/www"]
|
||||
VOLUME ["/var/www", "/var/log/apache2", "/var/run/apache2"]
|
||||
WORKDIR /var/www/
|
||||
EXPOSE 80 443
|
||||
|
||||
|
@ -1,18 +1,42 @@
|
||||
#!/bin/bash
|
||||
|
||||
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
|
||||
echo "[apache2] Done"
|
||||
else
|
||||
echo "[apache2] env FIX_WWW_DATA is set to strange value. Skipping..."
|
||||
fi
|
||||
set -e
|
||||
|
||||
echo "[apache2] Starting up"
|
||||
source /etc/apache2/envvars
|
||||
|
||||
case "${FIX_WWW_DATA}" in
|
||||
"")
|
||||
echo "[apache2] env FIX_WWW_DATA is not set. Skipping..."
|
||||
;;
|
||||
"false")
|
||||
echo "[apache2] env FIX_WWW_DATA is set to false. Skipping..."
|
||||
;;
|
||||
"true")
|
||||
echo "[apache2] Changing permissions for /var/www path. Please wait."
|
||||
if [ -d "/var/www" ]; then
|
||||
chown www-data:www-data /var/www -R
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "[apache2] Permissions changed successfully."
|
||||
else
|
||||
echo "[apache2] Error changing permissions for /var/www."
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
echo "[apache2] /var/www directory not found. Skipping permission change."
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "[apache2] env FIX_WWW_DATA is set to an invalid value. Skipping..."
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -f /etc/apache2/envvars ]; then
|
||||
source /etc/apache2/envvars
|
||||
else
|
||||
echo "[apache2] Warning: /etc/apache2/envvars not found."
|
||||
fi
|
||||
|
||||
tail -F /var/log/apache2/* &
|
||||
|
||||
echo "[apache2] Starting Apache in the foreground."
|
||||
exec apache2 -D FOREGROUND
|
||||
|
@ -126,7 +126,7 @@ RUN updatedb
|
||||
RUN chown -Rf www-data:www-data /var/www
|
||||
|
||||
#Final config
|
||||
VOLUME ["/var/www"]
|
||||
VOLUME ["/var/www", "/var/log/apache2", "/var/run/apache2"]
|
||||
WORKDIR /var/www/
|
||||
EXPOSE 80 443
|
||||
|
||||
|
@ -1,18 +1,42 @@
|
||||
#!/bin/bash
|
||||
|
||||
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
|
||||
echo "[apache2] Done"
|
||||
else
|
||||
echo "[apache2] env FIX_WWW_DATA is set to strange value. Skipping..."
|
||||
fi
|
||||
set -e
|
||||
|
||||
echo "[apache2] Starting up"
|
||||
source /etc/apache2/envvars
|
||||
|
||||
case "${FIX_WWW_DATA}" in
|
||||
"")
|
||||
echo "[apache2] env FIX_WWW_DATA is not set. Skipping..."
|
||||
;;
|
||||
"false")
|
||||
echo "[apache2] env FIX_WWW_DATA is set to false. Skipping..."
|
||||
;;
|
||||
"true")
|
||||
echo "[apache2] Changing permissions for /var/www path. Please wait."
|
||||
if [ -d "/var/www" ]; then
|
||||
chown www-data:www-data /var/www -R
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "[apache2] Permissions changed successfully."
|
||||
else
|
||||
echo "[apache2] Error changing permissions for /var/www."
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
echo "[apache2] /var/www directory not found. Skipping permission change."
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "[apache2] env FIX_WWW_DATA is set to an invalid value. Skipping..."
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -f /etc/apache2/envvars ]; then
|
||||
source /etc/apache2/envvars
|
||||
else
|
||||
echo "[apache2] Warning: /etc/apache2/envvars not found."
|
||||
fi
|
||||
|
||||
tail -F /var/log/apache2/* &
|
||||
|
||||
echo "[apache2] Starting Apache in the foreground."
|
||||
exec apache2 -D FOREGROUND
|
||||
|
@ -127,7 +127,7 @@ RUN updatedb
|
||||
RUN chown -Rf www-data:www-data /var/www
|
||||
|
||||
#Final config
|
||||
VOLUME ["/var/www"]
|
||||
VOLUME ["/var/www", "/var/log/apache2", "/var/run/apache2"]
|
||||
WORKDIR /var/www/
|
||||
EXPOSE 80 443
|
||||
|
||||
|
@ -1,18 +1,42 @@
|
||||
#!/bin/bash
|
||||
|
||||
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
|
||||
echo "[apache2] Done"
|
||||
else
|
||||
echo "[apache2] env FIX_WWW_DATA is set to strange value. Skipping..."
|
||||
fi
|
||||
set -e
|
||||
|
||||
echo "[apache2] Starting up"
|
||||
source /etc/apache2/envvars
|
||||
|
||||
case "${FIX_WWW_DATA}" in
|
||||
"")
|
||||
echo "[apache2] env FIX_WWW_DATA is not set. Skipping..."
|
||||
;;
|
||||
"false")
|
||||
echo "[apache2] env FIX_WWW_DATA is set to false. Skipping..."
|
||||
;;
|
||||
"true")
|
||||
echo "[apache2] Changing permissions for /var/www path. Please wait."
|
||||
if [ -d "/var/www" ]; then
|
||||
chown www-data:www-data /var/www -R
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "[apache2] Permissions changed successfully."
|
||||
else
|
||||
echo "[apache2] Error changing permissions for /var/www."
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
echo "[apache2] /var/www directory not found. Skipping permission change."
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "[apache2] env FIX_WWW_DATA is set to an invalid value. Skipping..."
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -f /etc/apache2/envvars ]; then
|
||||
source /etc/apache2/envvars
|
||||
else
|
||||
echo "[apache2] Warning: /etc/apache2/envvars not found."
|
||||
fi
|
||||
|
||||
tail -F /var/log/apache2/* &
|
||||
|
||||
echo "[apache2] Starting Apache in the foreground."
|
||||
exec apache2 -D FOREGROUND
|
||||
|
@ -133,7 +133,7 @@ RUN updatedb
|
||||
RUN chown -Rf www-data:www-data /var/www
|
||||
|
||||
#Final config
|
||||
VOLUME ["/var/www"]
|
||||
VOLUME ["/var/www", "/var/log/apache2", "/var/run/apache2"]
|
||||
WORKDIR /var/www/
|
||||
EXPOSE 80 443
|
||||
|
||||
|
@ -1,18 +1,42 @@
|
||||
#!/bin/bash
|
||||
|
||||
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
|
||||
echo "[apache2] Done"
|
||||
else
|
||||
echo "[apache2] env FIX_WWW_DATA is set to strange value. Skipping..."
|
||||
fi
|
||||
set -e
|
||||
|
||||
echo "[apache2] Starting up"
|
||||
source /etc/apache2/envvars
|
||||
|
||||
case "${FIX_WWW_DATA}" in
|
||||
"")
|
||||
echo "[apache2] env FIX_WWW_DATA is not set. Skipping..."
|
||||
;;
|
||||
"false")
|
||||
echo "[apache2] env FIX_WWW_DATA is set to false. Skipping..."
|
||||
;;
|
||||
"true")
|
||||
echo "[apache2] Changing permissions for /var/www path. Please wait."
|
||||
if [ -d "/var/www" ]; then
|
||||
chown www-data:www-data /var/www -R
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "[apache2] Permissions changed successfully."
|
||||
else
|
||||
echo "[apache2] Error changing permissions for /var/www."
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
echo "[apache2] /var/www directory not found. Skipping permission change."
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "[apache2] env FIX_WWW_DATA is set to an invalid value. Skipping..."
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -f /etc/apache2/envvars ]; then
|
||||
source /etc/apache2/envvars
|
||||
else
|
||||
echo "[apache2] Warning: /etc/apache2/envvars not found."
|
||||
fi
|
||||
|
||||
tail -F /var/log/apache2/* &
|
||||
|
||||
echo "[apache2] Starting Apache in the foreground."
|
||||
exec apache2 -D FOREGROUND
|
||||
|
@ -127,7 +127,7 @@ RUN updatedb
|
||||
RUN chown -Rf www-data:www-data /var/www
|
||||
|
||||
#Final config
|
||||
VOLUME ["/var/www"]
|
||||
VOLUME ["/var/www", "/var/log/apache2", "/var/run/apache2"]
|
||||
WORKDIR /var/www/
|
||||
EXPOSE 80 443
|
||||
|
||||
|
@ -1,18 +1,42 @@
|
||||
#!/bin/bash
|
||||
|
||||
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
|
||||
echo "[apache2] Done"
|
||||
else
|
||||
echo "[apache2] env FIX_WWW_DATA is set to strange value. Skipping..."
|
||||
fi
|
||||
set -e
|
||||
|
||||
echo "[apache2] Starting up"
|
||||
source /etc/apache2/envvars
|
||||
|
||||
case "${FIX_WWW_DATA}" in
|
||||
"")
|
||||
echo "[apache2] env FIX_WWW_DATA is not set. Skipping..."
|
||||
;;
|
||||
"false")
|
||||
echo "[apache2] env FIX_WWW_DATA is set to false. Skipping..."
|
||||
;;
|
||||
"true")
|
||||
echo "[apache2] Changing permissions for /var/www path. Please wait."
|
||||
if [ -d "/var/www" ]; then
|
||||
chown www-data:www-data /var/www -R
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "[apache2] Permissions changed successfully."
|
||||
else
|
||||
echo "[apache2] Error changing permissions for /var/www."
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
echo "[apache2] /var/www directory not found. Skipping permission change."
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "[apache2] env FIX_WWW_DATA is set to an invalid value. Skipping..."
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -f /etc/apache2/envvars ]; then
|
||||
source /etc/apache2/envvars
|
||||
else
|
||||
echo "[apache2] Warning: /etc/apache2/envvars not found."
|
||||
fi
|
||||
|
||||
tail -F /var/log/apache2/* &
|
||||
|
||||
echo "[apache2] Starting Apache in the foreground."
|
||||
exec apache2 -D FOREGROUND
|
||||
|
@ -127,7 +127,7 @@ RUN updatedb
|
||||
RUN chown -Rf www-data:www-data /var/www
|
||||
|
||||
#Final config
|
||||
VOLUME ["/var/www"]
|
||||
VOLUME ["/var/www", "/var/log/apache2", "/var/run/apache2"]
|
||||
WORKDIR /var/www/
|
||||
EXPOSE 80 443
|
||||
|
||||
|
@ -1,18 +1,42 @@
|
||||
#!/bin/bash
|
||||
|
||||
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
|
||||
echo "[apache2] Done"
|
||||
else
|
||||
echo "[apache2] env FIX_WWW_DATA is set to strange value. Skipping..."
|
||||
fi
|
||||
set -e
|
||||
|
||||
echo "[apache2] Starting up"
|
||||
source /etc/apache2/envvars
|
||||
|
||||
case "${FIX_WWW_DATA}" in
|
||||
"")
|
||||
echo "[apache2] env FIX_WWW_DATA is not set. Skipping..."
|
||||
;;
|
||||
"false")
|
||||
echo "[apache2] env FIX_WWW_DATA is set to false. Skipping..."
|
||||
;;
|
||||
"true")
|
||||
echo "[apache2] Changing permissions for /var/www path. Please wait."
|
||||
if [ -d "/var/www" ]; then
|
||||
chown www-data:www-data /var/www -R
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "[apache2] Permissions changed successfully."
|
||||
else
|
||||
echo "[apache2] Error changing permissions for /var/www."
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
echo "[apache2] /var/www directory not found. Skipping permission change."
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "[apache2] env FIX_WWW_DATA is set to an invalid value. Skipping..."
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -f /etc/apache2/envvars ]; then
|
||||
source /etc/apache2/envvars
|
||||
else
|
||||
echo "[apache2] Warning: /etc/apache2/envvars not found."
|
||||
fi
|
||||
|
||||
tail -F /var/log/apache2/* &
|
||||
|
||||
echo "[apache2] Starting Apache in the foreground."
|
||||
exec apache2 -D FOREGROUND
|
||||
|
@ -127,7 +127,7 @@ RUN updatedb
|
||||
RUN chown -Rf www-data:www-data /var/www
|
||||
|
||||
#Final config
|
||||
VOLUME ["/var/www"]
|
||||
VOLUME ["/var/www", "/var/log/apache2", "/var/run/apache2"]
|
||||
WORKDIR /var/www/
|
||||
EXPOSE 80 443
|
||||
|
||||
|
@ -1,18 +1,42 @@
|
||||
#!/bin/bash
|
||||
|
||||
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
|
||||
echo "[apache2] Done"
|
||||
else
|
||||
echo "[apache2] env FIX_WWW_DATA is set to strange value. Skipping..."
|
||||
fi
|
||||
set -e
|
||||
|
||||
echo "[apache2] Starting up"
|
||||
source /etc/apache2/envvars
|
||||
|
||||
case "${FIX_WWW_DATA}" in
|
||||
"")
|
||||
echo "[apache2] env FIX_WWW_DATA is not set. Skipping..."
|
||||
;;
|
||||
"false")
|
||||
echo "[apache2] env FIX_WWW_DATA is set to false. Skipping..."
|
||||
;;
|
||||
"true")
|
||||
echo "[apache2] Changing permissions for /var/www path. Please wait."
|
||||
if [ -d "/var/www" ]; then
|
||||
chown www-data:www-data /var/www -R
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "[apache2] Permissions changed successfully."
|
||||
else
|
||||
echo "[apache2] Error changing permissions for /var/www."
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
echo "[apache2] /var/www directory not found. Skipping permission change."
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "[apache2] env FIX_WWW_DATA is set to an invalid value. Skipping..."
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -f /etc/apache2/envvars ]; then
|
||||
source /etc/apache2/envvars
|
||||
else
|
||||
echo "[apache2] Warning: /etc/apache2/envvars not found."
|
||||
fi
|
||||
|
||||
tail -F /var/log/apache2/* &
|
||||
|
||||
echo "[apache2] Starting Apache in the foreground."
|
||||
exec apache2 -D FOREGROUND
|
||||
|
@ -127,7 +127,7 @@ RUN updatedb
|
||||
RUN chown -Rf www-data:www-data /var/www
|
||||
|
||||
#Final config
|
||||
VOLUME ["/var/www"]
|
||||
VOLUME ["/var/www", "/var/log/apache2", "/var/run/apache2"]
|
||||
WORKDIR /var/www/
|
||||
EXPOSE 80 443
|
||||
|
||||
|
@ -1,18 +1,42 @@
|
||||
#!/bin/bash
|
||||
|
||||
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
|
||||
echo "[apache2] Done"
|
||||
else
|
||||
echo "[apache2] env FIX_WWW_DATA is set to strange value. Skipping..."
|
||||
fi
|
||||
set -e
|
||||
|
||||
echo "[apache2] Starting up"
|
||||
source /etc/apache2/envvars
|
||||
|
||||
case "${FIX_WWW_DATA}" in
|
||||
"")
|
||||
echo "[apache2] env FIX_WWW_DATA is not set. Skipping..."
|
||||
;;
|
||||
"false")
|
||||
echo "[apache2] env FIX_WWW_DATA is set to false. Skipping..."
|
||||
;;
|
||||
"true")
|
||||
echo "[apache2] Changing permissions for /var/www path. Please wait."
|
||||
if [ -d "/var/www" ]; then
|
||||
chown www-data:www-data /var/www -R
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "[apache2] Permissions changed successfully."
|
||||
else
|
||||
echo "[apache2] Error changing permissions for /var/www."
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
echo "[apache2] /var/www directory not found. Skipping permission change."
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "[apache2] env FIX_WWW_DATA is set to an invalid value. Skipping..."
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -f /etc/apache2/envvars ]; then
|
||||
source /etc/apache2/envvars
|
||||
else
|
||||
echo "[apache2] Warning: /etc/apache2/envvars not found."
|
||||
fi
|
||||
|
||||
tail -F /var/log/apache2/* &
|
||||
|
||||
echo "[apache2] Starting Apache in the foreground."
|
||||
exec apache2 -D FOREGROUND
|
||||
|
@ -127,7 +127,7 @@ RUN updatedb
|
||||
RUN chown -Rf www-data:www-data /var/www
|
||||
|
||||
#Final config
|
||||
VOLUME ["/var/www"]
|
||||
VOLUME ["/var/www", "/var/log/apache2", "/var/run/apache2"]
|
||||
WORKDIR /var/www/
|
||||
EXPOSE 80 443
|
||||
|
||||
|
@ -1,18 +1,42 @@
|
||||
#!/bin/bash
|
||||
|
||||
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
|
||||
echo "[apache2] Done"
|
||||
else
|
||||
echo "[apache2] env FIX_WWW_DATA is set to strange value. Skipping..."
|
||||
fi
|
||||
set -e
|
||||
|
||||
echo "[apache2] Starting up"
|
||||
source /etc/apache2/envvars
|
||||
|
||||
case "${FIX_WWW_DATA}" in
|
||||
"")
|
||||
echo "[apache2] env FIX_WWW_DATA is not set. Skipping..."
|
||||
;;
|
||||
"false")
|
||||
echo "[apache2] env FIX_WWW_DATA is set to false. Skipping..."
|
||||
;;
|
||||
"true")
|
||||
echo "[apache2] Changing permissions for /var/www path. Please wait."
|
||||
if [ -d "/var/www" ]; then
|
||||
chown www-data:www-data /var/www -R
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "[apache2] Permissions changed successfully."
|
||||
else
|
||||
echo "[apache2] Error changing permissions for /var/www."
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
echo "[apache2] /var/www directory not found. Skipping permission change."
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "[apache2] env FIX_WWW_DATA is set to an invalid value. Skipping..."
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -f /etc/apache2/envvars ]; then
|
||||
source /etc/apache2/envvars
|
||||
else
|
||||
echo "[apache2] Warning: /etc/apache2/envvars not found."
|
||||
fi
|
||||
|
||||
tail -F /var/log/apache2/* &
|
||||
|
||||
echo "[apache2] Starting Apache in the foreground."
|
||||
exec apache2 -D FOREGROUND
|
||||
|
@ -108,7 +108,7 @@ RUN apt-get update && \
|
||||
php5.6-zmq \
|
||||
smbclient libsmbclient \
|
||||
sendmail && \
|
||||
ln -sf /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \
|
||||
ln -sfv /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \
|
||||
update-alternatives --set php /usr/bin/php5.6 && \
|
||||
# pear clear-cache && \
|
||||
pear update-channels && \
|
||||
|
@ -163,7 +163,7 @@ RUN apt-get update && \
|
||||
php7.0-pgsql \
|
||||
php7.0-phpdbg \
|
||||
php7.0-pinba \
|
||||
php7.0-pq \
|
||||
# php7.0-pq \
|
||||
php7.0-propro \
|
||||
php7.0-protobuf \
|
||||
php7.0-ps \
|
||||
@ -201,7 +201,7 @@ RUN apt-get update && \
|
||||
php7.0-zstd \
|
||||
smbclient libsmbclient \
|
||||
sendmail && \
|
||||
ln -sf /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \
|
||||
ln -sfv /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \
|
||||
update-alternatives --set php /usr/bin/php7.0 && \
|
||||
# pear clear-cache && \
|
||||
pear update-channels && \
|
||||
|
@ -164,7 +164,7 @@ RUN apt-get update && \
|
||||
php7.1-pgsql \
|
||||
php7.1-phpdbg \
|
||||
php7.1-pinba \
|
||||
php7.1-pq \
|
||||
# php7.1-pq \
|
||||
php7.1-propro \
|
||||
php7.1-protobuf \
|
||||
php7.1-ps \
|
||||
@ -203,7 +203,7 @@ RUN apt-get update && \
|
||||
php7.1-zstd \
|
||||
smbclient libsmbclient \
|
||||
sendmail && \
|
||||
ln -sf /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \
|
||||
ln -sfv /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \
|
||||
update-alternatives --set php /usr/bin/php7.1 && \
|
||||
# pear clear-cache && \
|
||||
pear update-channels && \
|
||||
|
@ -166,7 +166,7 @@ RUN apt-get update && \
|
||||
php7.2-phalcon4 \
|
||||
php7.2-phpdbg \
|
||||
php7.2-pinba \
|
||||
php7.2-pq \
|
||||
# php7.2-pq \
|
||||
php7.2-propro \
|
||||
php7.2-protobuf \
|
||||
php7.2-ps \
|
||||
@ -204,7 +204,7 @@ RUN apt-get update && \
|
||||
php7.2-zstd \
|
||||
smbclient libsmbclient \
|
||||
sendmail && \
|
||||
ln -sf /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \
|
||||
ln -sfv /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \
|
||||
update-alternatives --set php /usr/bin/php7.2 && \
|
||||
# pear clear-cache && \
|
||||
pear update-channels && \
|
||||
|
@ -166,7 +166,7 @@ RUN apt-get update && \
|
||||
php7.3-phalcon4 \
|
||||
php7.3-phpdbg \
|
||||
php7.3-pinba \
|
||||
php7.3-pq \
|
||||
# php7.3-pq \
|
||||
php7.3-propro \
|
||||
php7.3-protobuf \
|
||||
php7.3-ps \
|
||||
@ -205,7 +205,7 @@ RUN apt-get update && \
|
||||
php7.3-zstd \
|
||||
smbclient libsmbclient \
|
||||
sendmail && \
|
||||
ln -sf /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \
|
||||
ln -sfv /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \
|
||||
update-alternatives --set php /usr/bin/php7.3 && \
|
||||
# pear clear-cache && \
|
||||
pear update-channels && \
|
||||
|
@ -174,7 +174,7 @@ RUN apt-get update && \
|
||||
# php7.4-phalcon5 \
|
||||
php7.4-phpdbg \
|
||||
php7.4-pinba \
|
||||
php7.4-pq \
|
||||
# php7.4-pq \
|
||||
php7.4-propro \
|
||||
php7.4-protobuf \
|
||||
php7.4-ps \
|
||||
@ -212,7 +212,7 @@ RUN apt-get update && \
|
||||
php7.4-zstd \
|
||||
smbclient libsmbclient \
|
||||
sendmail && \
|
||||
ln -sf /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \
|
||||
ln -sfv /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \
|
||||
update-alternatives --set php /usr/bin/php7.4 && \
|
||||
# pear clear-cache && \
|
||||
pear update-channels && \
|
||||
|
@ -72,7 +72,7 @@ RUN apt-get update && \
|
||||
php8.0-phalcon5 \
|
||||
php8.0-phpdbg \
|
||||
php8.0-pinba \
|
||||
php8.0-pq \
|
||||
# php8.0-pq \
|
||||
php8.0-propro \
|
||||
php8.0-protobuf \
|
||||
php8.0-ps \
|
||||
@ -110,7 +110,7 @@ RUN apt-get update && \
|
||||
php8.0-zstd \
|
||||
smbclient libsmbclient \
|
||||
sendmail && \
|
||||
ln -sf /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \
|
||||
ln -sfv /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \
|
||||
update-alternatives --set php /usr/bin/php8.0 && \
|
||||
# pear clear-cache && \
|
||||
pear update-channels && \
|
||||
|
@ -72,7 +72,7 @@ RUN apt-get update && \
|
||||
php8.1-phalcon5 \
|
||||
php8.1-phpdbg \
|
||||
php8.1-pinba \
|
||||
php8.1-pq \
|
||||
# php8.1-pq \
|
||||
php8.1-propro \
|
||||
php8.1-protobuf \
|
||||
php8.1-ps \
|
||||
@ -110,7 +110,7 @@ RUN apt-get update && \
|
||||
php8.1-zstd \
|
||||
smbclient libsmbclient \
|
||||
sendmail && \
|
||||
ln -sf /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \
|
||||
ln -sfv /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \
|
||||
update-alternatives --set php /usr/bin/php8.1 && \
|
||||
# pear clear-cache && \
|
||||
pear update-channels && \
|
||||
|
@ -72,7 +72,7 @@ RUN apt-get update && \
|
||||
php8.2-phalcon5 \
|
||||
php8.2-phpdbg \
|
||||
php8.2-pinba \
|
||||
php8.2-pq \
|
||||
# php8.2-pq \
|
||||
php8.2-propro \
|
||||
php8.2-protobuf \
|
||||
php8.2-ps \
|
||||
@ -110,7 +110,7 @@ RUN apt-get update && \
|
||||
php8.2-zstd \
|
||||
smbclient libsmbclient \
|
||||
sendmail && \
|
||||
ln -sf /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \
|
||||
ln -sfv /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \
|
||||
update-alternatives --set php /usr/bin/php8.2 && \
|
||||
# pear clear-cache && \
|
||||
pear update-channels && \
|
||||
|
@ -71,7 +71,7 @@ RUN apt-get update && \
|
||||
php8.3-phalcon5 \
|
||||
php8.3-phpdbg \
|
||||
php8.3-pinba \
|
||||
php8.3-pq \
|
||||
# php8.3-pq \
|
||||
php8.3-protobuf \
|
||||
php8.3-ps \
|
||||
php8.3-pspell \
|
||||
@ -107,7 +107,7 @@ RUN apt-get update && \
|
||||
php8.3-zstd \
|
||||
smbclient libsmbclient \
|
||||
sendmail && \
|
||||
ln -sf /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \
|
||||
ln -sfv /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \
|
||||
update-alternatives --set php /usr/bin/php8.3 && \
|
||||
# pear clear-cache && \
|
||||
pear update-channels && \
|
||||
|
@ -54,7 +54,7 @@ RUN apt-get update && \
|
||||
php8.4-zip \
|
||||
smbclient libsmbclient \
|
||||
sendmail && \
|
||||
ln -sf /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \
|
||||
ln -sfv /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \
|
||||
update-alternatives --set php /usr/bin/php8.4 && \
|
||||
# pear clear-cache && \
|
||||
pear update-channels && \
|
||||
|
@ -190,7 +190,7 @@ RUN apt-get update && \
|
||||
xmlwriter \
|
||||
xsl \
|
||||
yaml && \
|
||||
ln -sf /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \
|
||||
ln -sfv /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \
|
||||
php -v
|
||||
|
||||
##################################################################
|
||||
|
@ -190,7 +190,7 @@ RUN apt-get update && \
|
||||
xmlwriter \
|
||||
xsl \
|
||||
yaml && \
|
||||
ln -sf /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \
|
||||
ln -sfv /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \
|
||||
php -v
|
||||
|
||||
##################################################################
|
||||
|
@ -190,7 +190,7 @@ RUN apt-get update && \
|
||||
xmlwriter \
|
||||
xsl \
|
||||
yaml && \
|
||||
ln -sf /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \
|
||||
ln -sfv /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \
|
||||
php -v
|
||||
|
||||
##################################################################
|
||||
|
@ -190,7 +190,7 @@ RUN apt-get update && \
|
||||
xmlwriter \
|
||||
xsl \
|
||||
yaml && \
|
||||
ln -sf /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \
|
||||
ln -sfv /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \
|
||||
php -v
|
||||
|
||||
##################################################################
|
||||
|
@ -190,7 +190,7 @@ RUN apt-get update && \
|
||||
xmlwriter \
|
||||
xsl \
|
||||
yaml && \
|
||||
ln -sf /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \
|
||||
ln -sfv /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \
|
||||
php -v
|
||||
|
||||
##################################################################
|
||||
|
@ -190,7 +190,7 @@ RUN apt-get update && \
|
||||
xmlwriter \
|
||||
xsl \
|
||||
yaml && \
|
||||
ln -sf /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \
|
||||
ln -sfv /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \
|
||||
php -v
|
||||
|
||||
##################################################################
|
||||
|
@ -190,7 +190,7 @@ RUN apt-get update && \
|
||||
xmlwriter \
|
||||
xsl \
|
||||
yaml && \
|
||||
ln -sf /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \
|
||||
ln -sfv /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \
|
||||
php -v
|
||||
|
||||
##################################################################
|
||||
|
@ -190,7 +190,7 @@ RUN apt-get update && \
|
||||
xmlwriter \
|
||||
xsl \
|
||||
yaml && \
|
||||
ln -sf /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \
|
||||
ln -sfv /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \
|
||||
php -v
|
||||
|
||||
##################################################################
|
||||
|
@ -190,7 +190,7 @@ RUN apt-get update && \
|
||||
xmlwriter \
|
||||
xsl \
|
||||
yaml && \
|
||||
ln -sf /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \
|
||||
ln -sfv /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \
|
||||
php -v
|
||||
|
||||
##################################################################
|
||||
|
@ -161,7 +161,7 @@ RUN apt-get update && \
|
||||
php7.4-geoip \
|
||||
smbclient libsmbclient \
|
||||
sendmail && \
|
||||
ln -sf /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \
|
||||
ln -sfv /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \
|
||||
update-alternatives --set php /usr/bin/php7.4 && \
|
||||
pear upgrade && \
|
||||
pear update-channels && \
|
||||
|
@ -190,7 +190,7 @@ RUN apt-get update && \
|
||||
xmlwriter \
|
||||
xsl \
|
||||
yaml && \
|
||||
ln -sf /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \
|
||||
ln -sfv /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \
|
||||
php -v
|
||||
|
||||
##################################################################
|
||||
|
Loading…
Reference in New Issue
Block a user