File tree Expand file tree Collapse file tree 3 files changed +16
-0
lines changed
Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -240,6 +240,11 @@ then
240240 source /usr/local/etc/library.sh
241241fi
242242
243+ if { ncc app_api:daemon:list || true ; } 2> /dev/null | grep ' No registered daemon configs.' > /dev/null 2>&1
244+ then
245+ ncc app:disable app_api
246+ fi
247+
243248# refresh completions
244249ncc _completion -g --shell-type bash -p ncc | sed ' s|/var/www/nextcloud/occ|ncc|g' > /usr/share/bash-completion/completions/ncp
245250
Original file line number Diff line number Diff line change 171171 # we handle this ourselves
172172 ncc app:disable updatenotification
173173
174+ # Not supported in Nextcloudpi without manual setup
175+ ncc app:disable app_api
176+
174177 # ncp-previewgenerator
175178 local ncver
176179 ncver=" $( ncc status 2> /dev/null | grep " version:" | awk ' { print $3 }' ) "
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ if { ncc app_api:daemon:list || true ; } 2> /dev/null | grep ' No registered daemon configs.' > /dev/null 2>&1
4+ then
5+ ncc app:disable app_api
6+ fi
7+
8+ exit 0
You can’t perform that action at this time.
0 commit comments