feat: replaced nextcloud-entrypoint file to Entrypoint command in nextcloud.container

This commit is contained in:
coolnsx
2025-10-01 23:14:01 +05:30
parent f6b669ae56
commit 25823302fd
2 changed files with 1 additions and 23 deletions

View File

@@ -1,22 +0,0 @@
#!/bin/sh
####################
# My Special Sauce #
####################
#################################################################
# This script is to make the www-data in /entrypoint.sh to #
# any user specified by $UID, so that your nextcloud can run #
# properly. #
#################################################################
set -eu
# default to UID=1000 if not set
TARGET_UID="${UID:-1000}"
# replace "www-data" with numeric UID/GID
sed -i "s/www-data/${TARGET_UID}/g" /entrypoint.sh
# execute the patched entrypoint with all args
exec /entrypoint.sh php-fpm

View File

@@ -7,7 +7,7 @@ After=nextcloud_db.service nextcloud_valkey.service
Pod=nextcloud.pod Pod=nextcloud.pod
ContainerName=nextcloud ContainerName=nextcloud
Image=docker.io/library/nextcloud:fpm-alpine Image=docker.io/library/nextcloud:fpm-alpine
Entrypoint=/nextcloud-entrypoint.sh Entrypoint=["/bin/sh","-c","sed -i 's/www-data/1000/g' /entrypoint.sh && exec /entrypoint.sh php-fpm"]
# Enable auto-update container # Enable auto-update container
AutoUpdate=registry AutoUpdate=registry