From eb4e0d4bbaab2cdbe41d9b0f0afced752106c667 Mon Sep 17 00:00:00 2001 From: nachoparker Date: Sun, 28 May 2017 20:18:52 +0200 Subject: protect ncp-update from self modifications. fix --- bin/nextcloudpi-config | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'bin') diff --git a/bin/nextcloudpi-config b/bin/nextcloudpi-config index 477724c1..797a3361 100755 --- a/bin/nextcloudpi-config +++ b/bin/nextcloudpi-config @@ -13,10 +13,10 @@ # source /usr/local/etc/library.sh +{ function nextcloud-config() { - { local DIALOG_OK=0 local VERFILE=/var/run/.ncp-latest-version local BACKTITLE="NextCloudPi configuration ver. " @@ -60,8 +60,6 @@ function nextcloud-config() info_script $script.sh || continue; configure_script $script.sh && { echo "Done. Press any key..."; read; } done - return - } # force to read the whole thing into memory, as its contents might change in update.sh } if [ $(id -u) -ne 0 ]; then @@ -71,6 +69,9 @@ fi nextcloud-config +exit $? +} # force to read the whole thing into memory, as its contents might change in update.sh + # License # # This script is free software; you can redistribute it and/or modify it -- cgit v1.2.3