mirror of
https://github.com/wger-project/wger.git
synced 2026-02-18 00:17:51 +01:00
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:
@@ -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
|
||||
-----------
|
||||
|
||||
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user