1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-06-03 17:14:08 +02:00
haze/images/php/bootstrap-nginx.sh
2021-04-08 15:42:03 +02:00

16 lines
291 B
Bash
Executable file

#!/bin/sh
touch /var/log/nginx/access.log
touch /var/log/nginx/error.log
tail --follow --retry /var/log/nginx/*.log &
UID=${UID:-1000}
GID=${GID:-1000}
groupadd -g $GID haze
useradd -m -u $UID -g $GID haze
chown -R haze:haze /home/haze
/usr/local/sbin/php-fpm &
/etc/init.d/nginx start