mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-01-23 02:35:14 +00:00
updated scripts, attempting to fix perms issue on socket
This commit is contained in:
parent
80fbb66dbd
commit
206a0814be
2 changed files with 4 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ export PGID=${PGID:-1000}
|
|||
|
||||
# Create group if it doesn't exist
|
||||
if ! getent group "$PGID" >/dev/null 2>&1; then
|
||||
groupadd -g "$PGID" mygroup
|
||||
groupadd -g "$PGID" dispatch
|
||||
fi
|
||||
# Create user if it doesn't exist
|
||||
if ! getent passwd $PUID > /dev/null 2>&1; then
|
||||
|
|
@ -17,3 +17,5 @@ else
|
|||
usermod -l $POSTGRES_USER -g $PGID "$existing_user"
|
||||
fi
|
||||
fi
|
||||
|
||||
usermod -aG www-data $POSTGRES_USER
|
||||
|
|
|
|||
|
|
@ -4,4 +4,5 @@
|
|||
# @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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue