Fix linux permissions
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#/bin/bash
|
||||
|
||||
chmod g+w -R /execute/db
|
||||
envsubst '$NGINX_PORT' < /tmp/nginx.conf > /etc/nginx/nginx.conf
|
||||
/usr/sbin/nginx -g "daemon off;" || exit 1
|
||||
/usr/sbin/nginx -g "daemon off;" || exit 1
|
||||
|
||||
@@ -8,11 +8,16 @@ nodaemon = true
|
||||
[program:backend]
|
||||
directory=/execute
|
||||
user = nobody
|
||||
group = root
|
||||
command=python3 app.py
|
||||
startsecs=10
|
||||
stopsignal=QUIT
|
||||
stopasgroup=true
|
||||
killasgroup=true
|
||||
stderr_logfile=/var/log/supervisor/%(program_name)s_stderr.log
|
||||
stderr_logfile_maxbytes=10MB
|
||||
stdout_logfile=/var/log/supervisor/%(program_name)s_stdout.log
|
||||
stdout_logfile_maxbytes=10MB
|
||||
|
||||
[program:frontend]
|
||||
directory=/execute
|
||||
|
||||
Reference in New Issue
Block a user