From d345af9c2a65058e1ca5034e69d56152b7f4dfcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Kn=C3=B6ppler?= <6317548+theCalcaholic@users.noreply.github.com> Date: Sat, 18 Oct 2025 21:03:22 +0200 Subject: [PATCH] Disable app_api unless configured --- bin/ncp/CONFIG/nc-init.sh | 3 +++ updates/1.56.0.sh | 8 ++++++++ 2 files changed, 11 insertions(+) create mode 100644 updates/1.56.0.sh diff --git a/bin/ncp/CONFIG/nc-init.sh b/bin/ncp/CONFIG/nc-init.sh index f467b322..bfe8ca81 100644 --- a/bin/ncp/CONFIG/nc-init.sh +++ b/bin/ncp/CONFIG/nc-init.sh @@ -171,6 +171,9 @@ EOF # we handle this ourselves ncc app:disable updatenotification + # Not supported in Nextcloudpi without manual setup + ncc app:disable app_api + # ncp-previewgenerator local ncver ncver="$(ncc status 2>/dev/null | grep "version:" | awk '{ print $3 }')" diff --git a/updates/1.56.0.sh b/updates/1.56.0.sh new file mode 100644 index 00000000..6466a2d9 --- /dev/null +++ b/updates/1.56.0.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +if ncc app_api:daemon:list | grep 'No registered daemon configs.' > /dev/null 2>&1 +then + ncc app:disable app_api +fi + +exit 0 \ No newline at end of file