From 206a0814becdeb682f3010cfadba8808069b7ded Mon Sep 17 00:00:00 2001 From: dekzter Date: Wed, 5 Mar 2025 14:53:47 -0500 Subject: [PATCH] updated scripts, attempting to fix perms issue on socket --- docker/init/01-user-setup.sh | 4 +++- docker/init/03-init-dispatcharr.sh | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docker/init/01-user-setup.sh b/docker/init/01-user-setup.sh index 43878903..9b2755d1 100644 --- a/docker/init/01-user-setup.sh +++ b/docker/init/01-user-setup.sh @@ -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 diff --git a/docker/init/03-init-dispatcharr.sh b/docker/init/03-init-dispatcharr.sh index 55f697bc..4aba05d6 100644 --- a/docker/init/03-init-dispatcharr.sh +++ b/docker/init/03-init-dispatcharr.sh @@ -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