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
path: root/bin
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2020-08-02 19:44:07 +0300
committernachoparker <nacho@ownyourbits.com>2020-08-02 19:44:10 +0300
commit81fcd1483ac60677742aadd5656aded3009ce18f (patch)
treec9c1332d4909fa7410c42ab2830f2ba4601d2934 /bin
parent06017a4bcf8d2ee868716cfa7b7bc65a06bad58d (diff)
ncp-autoupdate-apps: dont fail cron if no updatesv1.28.3
Signed-off-by: nachoparker <nacho@ownyourbits.com>
Diffstat (limited to 'bin')
-rw-r--r--bin/ncp/UPDATES/nc-update-nc-apps-auto.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/ncp/UPDATES/nc-update-nc-apps-auto.sh b/bin/ncp/UPDATES/nc-update-nc-apps-auto.sh
index 5c5d06d4..09926321 100644
--- a/bin/ncp/UPDATES/nc-update-nc-apps-auto.sh
+++ b/bin/ncp/UPDATES/nc-update-nc-apps-auto.sh
@@ -8,11 +8,11 @@
# More at: https://ownyourbits.com
#
-configure()
+configure()
{
local cronfile=/etc/cron.daily/ncp-autoupdate-apps
- [[ "$ACTIVE" != "yes" ]] && {
+ [[ "$ACTIVE" != "yes" ]] && {
rm -f "$cronfile"
echo "automatic app updates disabled"
return 0
@@ -29,7 +29,8 @@ echo "checking for updates..."
echo "\$OUT" >> /var/log/ncp.log
APPS=\$( echo "\$OUT" | grep 'updated\$' | awk '{ print \$1 }')
-[[ "\$APPS" != "" ]] && notify_admin "Apps updated" "\$APPS"
+[[ "\$APPS" == "" ]] && exit 0
+notify_admin "Apps updated" "\$APPS"
EOF
chmod 755 "$cronfile"
echo "automatic app updates enabled"