mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-01-23 02:35:14 +00:00
conditional manage perms since mac doesn't need it
This commit is contained in:
parent
dfeb5a7c7b
commit
01f5b99f72
1 changed files with 9 additions and 4 deletions
|
|
@ -2,7 +2,12 @@
|
|||
|
||||
# Required so both uwsgi and nginx (www-data) can use it
|
||||
# @TODO: change nginx to run as the same use as uwsgi
|
||||
touch /app/uwsgi.sock
|
||||
chown -R $PUID:$PGID /app
|
||||
chown $PUID:www-data /app/uwsgi.sock
|
||||
chmod 777 /app/uwsgi.sock
|
||||
|
||||
# NOTE: mac doesn't run as root, so only manage permissions
|
||||
# if this script is running as root
|
||||
if [ "$(id -u)" = "0" ]; then
|
||||
touch /app/uwsgi.sock
|
||||
chown -R $PUID:$PGID /app
|
||||
chown $PUID:www-data /app/uwsgi.sock
|
||||
chmod 777 /app/uwsgi.sock
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue