Leave user wger as owner for db folder

The apache process still has the group permissions to write the sqlite file
This commit is contained in:
Roland Geider
2020-10-15 22:56:22 +02:00
parent 58bc182f0d
commit 1c59eb0236
2 changed files with 4 additions and 2 deletions

View File

@@ -88,7 +88,8 @@ If using sqlite, create a folder for it (must be writable by the apache user)::
mkdir db
touch db/database.sqlite
chmod -R o+w db
chown :www-data -R /home/wger/db
chmod g+w /home/wger/db /home/wger/db/database.sqlite
Application
-----------

View File

@@ -100,6 +100,7 @@ RUN mkdir -p ~/static/CACHE ~/media \
USER root
RUN apt-get remove build-essential -y \
&& apt autoremove -y \
&& chown www-data:www-data -R /home/wger/db
&& chown :www-data -R /home/wger/db \
&& chmod g+w /home/wger/db /home/wger/db/database.sqlite
ENTRYPOINT ["/home/wger/entrypoint.sh"]