mirror of
https://github.com/nextcloud/nextcloudpi.git
synced 2026-01-09 06:32:00 -03:30
Disable app_api unless configured
This commit is contained in:
parent
d0d30c6872
commit
d345af9c2a
@ -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
8
updates/1.56.0.sh
Normal 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
|
||||
Loading…
x
Reference in New Issue
Block a user