mirror of
https://github.com/nextcloud/nextcloudpi.git
synced 2026-01-10 15:12:01 -03:30
Disable app_api unless configured
This commit is contained in:
parent
9c8414d785
commit
5b4d0ce91f
@ -240,6 +240,11 @@ then
|
||||
source /usr/local/etc/library.sh
|
||||
fi
|
||||
|
||||
if { ncc app_api:daemon:list || true; } 2> /dev/null | grep 'No registered daemon configs.' > /dev/null 2>&1
|
||||
then
|
||||
ncc app:disable app_api
|
||||
fi
|
||||
|
||||
# refresh completions
|
||||
ncc _completion -g --shell-type bash -p ncc | sed 's|/var/www/nextcloud/occ|ncc|g' > /usr/share/bash-completion/completions/ncp
|
||||
|
||||
|
||||
@ -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 || true; } 2> /dev/null | 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