updated scripts, attempting to fix perms issue on socket

This commit is contained in:
dekzter 2025-03-05 14:53:47 -05:00
parent 80fbb66dbd
commit 206a0814be
2 changed files with 4 additions and 1 deletions

View file

@ -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

View file

@ -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