ncp-update, update.sh: Inherit DBG flag from install script

Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
This commit is contained in:
Tobias K 2022-03-24 20:02:37 +01:00
parent 99a3c45592
commit d9cee78384
No known key found for this signature in database
GPG Key ID: 44FD368932E645C1
2 changed files with 3 additions and 1 deletions

View File

@ -2,6 +2,8 @@
# update latest NextCloudPi code from github
[[ -z "$DBG" ]] || set -$DBG
{
[ "$(id -u)" -ne 0 ] && { printf "Must be run as root. Try 'sudo $0'\n"; exit 1; }

View File

@ -10,7 +10,7 @@
source /usr/local/etc/library.sh
set -e
set -e$DBG
CONFDIR=/usr/local/etc/ncp-config.d/
UPDATESDIR=updates