diff options
author | nachoparker <nacho@ownyourbits.com> | 2017-05-28 21:18:52 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2017-05-28 21:18:52 +0300 |
commit | eb4e0d4bbaab2cdbe41d9b0f0afced752106c667 (patch) | |
tree | 528c48b39fd2e25f3c6a7ed581b39fcb180ad821 /bin/nextcloudpi-config | |
parent | eb438ed3957637463163d061c01f0d7081ebbc1a (diff) |
protect ncp-update from self modifications. fixv0.12.12
Diffstat (limited to 'bin/nextcloudpi-config')
-rwxr-xr-x | bin/nextcloudpi-config | 7 |
1 files changed, 4 insertions, 3 deletions
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 |