forked from leftypol/leftypol
docker: change user to www-data
This commit is contained in:
parent
726de817b1
commit
5bf2634bf6
5 changed files with 20 additions and 21 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
set -eu
|
||||
|
||||
install -m 775 -o leftypol -g leftypol -d /var/www
|
||||
install -m 775 -o www-data -g www-data -d /var/www
|
||||
ln -s \
|
||||
/code/banners/ \
|
||||
/code/static/ \
|
||||
|
@ -16,16 +16,16 @@ ln -s \
|
|||
/code/install.sql \
|
||||
/var/www/
|
||||
|
||||
install -m 775 -o leftypol -g leftypol -d /var/tmp/leftypol
|
||||
install -m 775 -o leftypol -g leftypol -d /var/tmp/leftypol/cache
|
||||
install -m 775 -o www-data -g www-data -d /var/tmp/leftypol
|
||||
install -m 775 -o www-data -g www-data -d /var/tmp/leftypol/cache
|
||||
ln -s /var/tmp/leftypol /var/www/tmp
|
||||
|
||||
install -m 775 -o leftypol -g leftypol -d /var/www/js
|
||||
install -m 775 -o www-data -g www-data -d /var/www/js
|
||||
ln -s /code/js/* /var/www/js/
|
||||
|
||||
install -m 775 -o leftypol -g leftypol -d /var/www/templates
|
||||
install -m 775 -o leftypol -g leftypol -d /var/www/templates/cache
|
||||
install -m 775 -o www-data -g www-data -d /var/www/templates
|
||||
install -m 775 -o www-data -g www-data -d /var/www/templates/cache
|
||||
ln -s /code/templates/* /var/www/templates/
|
||||
|
||||
install -m 775 -o leftypol -g leftypol -d /var/www/inc
|
||||
install -m 775 -o www-data -g www-data -d /var/www/inc
|
||||
ln -s /code/inc/* /var/www/inc/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue