15 lines
379 B
Bash
Executable File
15 lines
379 B
Bash
Executable File
#!/bin/sh
|
|
|
|
chmod o+rx /var/lib/nginx
|
|
chmod og+rx /var/lib/nginx/tmp
|
|
|
|
addgroup -g ${GID} privatebin && \
|
|
adduser -h /privatebin -H -s /bin/sh -D -G privatebin -u ${UID} privatebin
|
|
|
|
if [ ! -f /privatebin/cfg/conf.php ]; then
|
|
cp /privatebin/conf.sample.php /privatebin/cfg/conf.php
|
|
fi
|
|
|
|
chown -R privatebin:privatebin /privatebin/data
|
|
supervisord -c /usr/local/etc/supervisord.conf
|