Disable app_api unless configured

This commit is contained in:
Tobias Knöppler 2025-10-18 21:03:22 +02:00
parent d0d30c6872
commit d345af9c2a
2 changed files with 11 additions and 0 deletions

View File

@ -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 }')"

8
updates/1.56.0.sh Normal file
View File

@ -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