mirror of
https://github.com/CoolnsX/selfhost_podman.git
synced 2025-12-20 03:45:16 +05:30
Fuck it, YOLO!
This commit is contained in:
@@ -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 <<EOF >/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
|
||||
|
||||
Reference in New Issue
Block a user