From 8c9cdd12682dd39d1a5abf53c1c7574ec5040c73 Mon Sep 17 00:00:00 2001 From: J0WI Date: Tue, 21 Mar 2023 19:31:21 +0000 Subject: [PATCH] Add sysvsem (#1952) Signed-off-by: J0WI --- Dockerfile-alpine.template | 1 + Dockerfile-debian.template | 1 + update.sh | 9 +++++++++ 3 files changed, 11 insertions(+) diff --git a/Dockerfile-alpine.template b/Dockerfile-alpine.template index dffd36ab..43b85308 100644 --- a/Dockerfile-alpine.template +++ b/Dockerfile-alpine.template @@ -48,6 +48,7 @@ RUN set -ex; \ pcntl \ pdo_mysql \ pdo_pgsql \ + sysvsem \ zip \ ; \ \ diff --git a/Dockerfile-debian.template b/Dockerfile-debian.template index a9de46ce..d3fb81ee 100644 --- a/Dockerfile-debian.template +++ b/Dockerfile-debian.template @@ -57,6 +57,7 @@ RUN set -ex; \ pcntl \ pdo_mysql \ pdo_pgsql \ + sysvsem \ zip \ ; \ \ diff --git a/update.sh b/update.sh index 57724f90..a8089ff3 100755 --- a/update.sh +++ b/update.sh @@ -113,6 +113,15 @@ function create_variant() { s/%%CRONTAB_INT%%/'"$crontabInt"'/g; ' "$dir/Dockerfile" + # Nextcloud 26+ recommends sysvsem + case "$version" in + 24|25 ) + sed -ri -e ' + /sysvsem/d + ' "$dir/Dockerfile" + ;; + esac + # Copy the shell scripts for name in entrypoint cron; do cp "docker-$name.sh" "$dir/$name.sh"