diff options
-rw-r--r-- | bin/ncp/UPDATES/nc-update-nc-apps-auto.sh | 7 | ||||
-rw-r--r-- | changelog.md | 4 |
2 files changed, 7 insertions, 4 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" diff --git a/changelog.md b/changelog.md index 065c9113..170a374a 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,7 @@ -[v1.28.2](https://github.com/nextcloud/nextcloudpi/commit/a2e6356) (2020-08-02) nc-limits: adjust db size +[v1.28.3](https://github.com/nextcloud/nextcloudpi/commit/cb25e3f) (2020-08-02) ncp-autoupdate-apps: dont fail cron if no updates + +[v1.28.2](https://github.com/nextcloud/nextcloudpi/commit/06017a4) (2020-08-02) nc-limits: adjust db size [v1.28.1](https://github.com/nextcloud/nextcloudpi/commit/dda010b) (2020-08-02) nc-ramlogs: pin version |