From 25823302fd792deea57de8cdd84bd5410e4d9c56 Mon Sep 17 00:00:00 2001 From: coolnsx Date: Wed, 1 Oct 2025 23:14:01 +0530 Subject: [PATCH] feat: replaced nextcloud-entrypoint file to Entrypoint command in nextcloud.container --- nextcloud/nextcloud-entrypoint.sh | 22 ---------------------- nextcloud/nextcloud.container | 2 +- 2 files changed, 1 insertion(+), 23 deletions(-) delete mode 100755 nextcloud/nextcloud-entrypoint.sh diff --git a/nextcloud/nextcloud-entrypoint.sh b/nextcloud/nextcloud-entrypoint.sh deleted file mode 100755 index 760400c..0000000 --- a/nextcloud/nextcloud-entrypoint.sh +++ /dev/null @@ -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 diff --git a/nextcloud/nextcloud.container b/nextcloud/nextcloud.container index 72a74ef..4d63e14 100644 --- a/nextcloud/nextcloud.container +++ b/nextcloud/nextcloud.container @@ -7,7 +7,7 @@ After=nextcloud_db.service nextcloud_valkey.service Pod=nextcloud.pod ContainerName=nextcloud 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 AutoUpdate=registry