Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2018-05-20 14:38:16 +0300
committernachoparker <nacho@ownyourbits.com>2018-05-20 14:38:16 +0300
commitc97acf8a8e7aa1ba17d5f5d7379635dd82259563 (patch)
tree61fcb8dc339baa506ba6cc85fe371b5d7ad1cd9a /update.sh
parent6150ee7dff3a56fba36f13413d3ef6d2d15a4b17 (diff)
ncp-autoupdate: dont return 0 if no updates availablev0.56.5
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/update.sh b/update.sh
index 0f05d092..505ef8c7 100755
--- a/update.sh
+++ b/update.sh
@@ -145,6 +145,18 @@ done
install_script nc-restore.sh
cd - &>/dev/null
+ F="$CONFDIR"/nc-autoupdate-ncp.sh
+ grep -q '^ACTIVE_=yes$' "$F" && {
+ cd "$CONFDIR" &>/dev/null
+ activate_script nc-autoupdate-ncp.sh
+ cd - &>/dev/null
+ }
+ F="$CONFDIR"/nc-autoupdate-nc.sh
+ grep -q '^ACTIVE_=yes$' "$F" && {
+ cd "$CONFDIR" &>/dev/null
+ activate_script nc-autoupdate-nc.sh
+ cd - &>/dev/null
+ }
} # end - only live updates