2017-01-03 22:27:16 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
|
|
addgroup -g ${GID} privatebin && adduser -h /privatebin -s /bin/sh -D -G privatebin -u ${UID} privatebin
|
|
|
|
|
touch /var/run/php-fpm.sock
|
|
|
|
|
|
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
|
|
|
|
|
|
2017-07-06 20:42:19 +00:00
|
|
|
chown -R privatebin:privatebin /privatebin /var/run/php-fpm.sock /var/lib/nginx /tmp /var/tmp/nginx
|
2017-01-03 22:27:16 +01:00
|
|
|
supervisord -c /usr/local/etc/supervisord.conf
|