From 2fd3636714fc8ffbcf991eac39d78920df7d0cff Mon Sep 17 00:00:00 2001 From: coolnsx Date: Sun, 26 Oct 2025 15:52:14 +0530 Subject: [PATCH] Fuck it, YOLO! --- nextcloud/nextcloud-entrypoint.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nextcloud/nextcloud-entrypoint.sh b/nextcloud/nextcloud-entrypoint.sh index c586263..8f970f0 100755 --- a/nextcloud/nextcloud-entrypoint.sh +++ b/nextcloud/nextcloud-entrypoint.sh @@ -17,6 +17,9 @@ apk add --no-cache tzdata # default to UID=1000 if not set TARGET_UID="${PUID:-1000}" +# add user as the su in image doesn't know user ID we will pass +adduser -D -u "${TARGET_UID}" "abc" || true + # Overwrite /usr/local/etc/php-fpm.d/zz-docker.conf to make php-fpm listen on unix socket cat </usr/local/etc/php-fpm.d/zz-docker.conf ; Generated by /nextcloud-entrypoint.sh @@ -45,7 +48,7 @@ pm.max_requests = 1000 EOF # replace "www-data" with numeric $PUID in /entrypoint.sh -sed -i "s/www-data/${TARGET_UID}/g" /entrypoint.sh +sed -i "s/www-data/abc/g" /entrypoint.sh # execute the patched entrypoint with all args exec /entrypoint.sh php-fpm