Skip to content

Commit

Permalink
protect ncp-update from self modifications. fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed May 28, 2017
1 parent eb438ed commit eb4e0d4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bin/nextcloudpi-config
Original file line number Diff line number Diff line change
Expand Up @@ -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. "
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit eb4e0d4

Please sign in to comment.