Commit f97826fc authored by Johannes Zellner's avatar Johannes Zellner

Make avatar folder writeable

parent 0c324619
......@@ -45,6 +45,7 @@ RUN rm -rf /app/code/.env && ln -s /run/kimai/env
rm -rf /app/code/var/log && ln -s /run/kimai/log /app/code/var/log && \
rm -rf /app/code/var/cache && ln -s /run/kimai/cache /app/code/var/cache && \
rm -rf /app/code/var/data && ln -s /app/data/data /app/code/var/data && \
rm -rf /app/code/public/avatars && ln -s /app/data/avatars /app/code/public/avatars && \
rm -rf /app/code/var/plugins && ln -s /app/data/plugins /app/code/var/plugins
RUN chown www-data:www-data -R /app/code
......
......@@ -3,7 +3,7 @@
set -eu
echo "=> Ensure directories"
mkdir -p /run/php/sessions /run/kimai/sessions /run/kimai/cache /app/data/data /run/kimai/log /app/data/plugins
mkdir -p /run/php/sessions /run/kimai/sessions /run/kimai/cache /app/data/data /run/kimai/log /app/data/plugins /app/data/avatars
touch /app/data/local.yaml
echo "=> Creating .env"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment