Files
docker-privatebin/entrypoint.sh

12 lines
321 B
Bash
Raw Normal View History

2017-01-03 22:27:16 +01:00
#!/bin/sh
addgroup -g ${GID} privatebin && \
adduser -h /privatebin -H -s /bin/sh -D -G privatebin -u ${UID} privatebin
2017-01-03 22:27:16 +01:00
2018-02-21 08:37:14 +01:00
if [ ! -f /privatebin/cfg/conf.php ]; then
cp /privatebin/conf.sample.php /privatebin/cfg/conf.php
2017-01-03 22:27:16 +01:00
fi
chown -R privatebin:privatebin /privatebin/data
2017-01-03 22:27:16 +01:00
supervisord -c /usr/local/etc/supervisord.conf