forked from leftypol/leftypol
Use two Dockerfiles, move Docker stuff to /docker
This commit is contained in:
parent
ea99ddc6f6
commit
dcc936b35d
9 changed files with 262 additions and 4 deletions
32
docker/common-setup.sh
Executable file
32
docker/common-setup.sh
Executable file
|
@ -0,0 +1,32 @@
|
|||
#!/bin/sh
|
||||
|
||||
# not exactly elegant, but one container is Debian, the other is Alpine
|
||||
useradd -MU leftypol
|
||||
addgroup leftypol
|
||||
adduser -DHG leftypol leftypol
|
||||
|
||||
set -eu
|
||||
|
||||
install -m 775 -o leftypol -g leftypol -d /var/www-leftypol
|
||||
ln -s \
|
||||
/code/banners/ \
|
||||
/code/static/ \
|
||||
/code/stylesheets/ \
|
||||
/code/tools/ \
|
||||
/code/walls/ \
|
||||
/code/*.php \
|
||||
/code/404.html \
|
||||
/code/LICENSE.* \
|
||||
/code/robots.txt \
|
||||
/code/install.sql \
|
||||
/var/www-leftypol/
|
||||
|
||||
install -m 775 -o leftypol -g leftypol -d /var/www/js
|
||||
ln -s /code/js/* /var/www/js/
|
||||
|
||||
install -m 775 -o leftypol -g leftypol -d /var/www-leftypol/templates
|
||||
install -m 775 -o leftypol -g leftypol -d /var/www-leftypol/templates/cache
|
||||
ln -s /code/templates/* /var/www-leftypol/templates/
|
||||
|
||||
install -m 775 -o leftypol -g leftypol -d /var/www-leftypol/inc
|
||||
ln -s /code/inc/* /var/www-leftypol/inc/
|
Loading…
Add table
Add a link
Reference in a new issue