Initial commit

This commit is contained in:
Jeroen Geusebroek
2017-01-03 22:27:16 +01:00
commit 81b938df45
9 changed files with 197 additions and 0 deletions

11
entrypoint.sh Normal file
View File

@@ -0,0 +1,11 @@
#!/bin/sh
addgroup -g ${GID} privatebin && adduser -h /privatebin -s /bin/sh -D -G privatebin -u ${UID} privatebin
touch /var/run/php-fpm.sock
if [ ! -f /privatebin/cfg/conf.ini ]; then
cp /privatebin/conf.ini.sample /privatebin/cfg/conf.ini
fi
chown -R privatebin:privatebin /privatebin /var/run/php-fpm.sock /var/lib/nginx /tmp
supervisord -c /usr/local/etc/supervisord.conf