2017-01-03 22:27:16 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
2020-10-07 20:40:10 +02:00
|
|
|
chmod o+rx /var/lib/nginx
|
|
|
|
|
chmod og+rx /var/lib/nginx/tmp
|
|
|
|
|
|
2018-06-05 06:55:45 +02:00
|
|
|
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
|
2017-11-30 22:59:30 +01:00
|
|
|
cp /privatebin/conf.sample.php /privatebin/cfg/conf.php
|
2017-01-03 22:27:16 +01:00
|
|
|
fi
|
|
|
|
|
|
2020-01-17 11:36:26 +01:00
|
|
|
chown -R privatebin:privatebin /privatebin/data
|
2017-01-03 22:27:16 +01:00
|
|
|
supervisord -c /usr/local/etc/supervisord.conf
|