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