Skip to content

Commit 81fcd14

Browse files
committed
ncp-autoupdate-apps: dont fail cron if no updates
Signed-off-by: nachoparker <nacho@ownyourbits.com>
1 parent 06017a4 commit 81fcd14

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

bin/ncp/UPDATES/nc-update-nc-apps-auto.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
# More at: https://ownyourbits.com
99
#
1010

11-
configure()
11+
configure()
1212
{
1313
local cronfile=/etc/cron.daily/ncp-autoupdate-apps
1414

15-
[[ "$ACTIVE" != "yes" ]] && {
15+
[[ "$ACTIVE" != "yes" ]] && {
1616
rm -f "$cronfile"
1717
echo "automatic app updates disabled"
1818
return 0
@@ -29,7 +29,8 @@ echo "checking for updates..."
2929
echo "\$OUT" >> /var/log/ncp.log
3030
3131
APPS=\$( echo "\$OUT" | grep 'updated\$' | awk '{ print \$1 }')
32-
[[ "\$APPS" != "" ]] && notify_admin "Apps updated" "\$APPS"
32+
[[ "\$APPS" == "" ]] && exit 0
33+
notify_admin "Apps updated" "\$APPS"
3334
EOF
3435
chmod 755 "$cronfile"
3536
echo "automatic app updates enabled"

changelog.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11

2-
[v1.28.2](https://github.com/nextcloud/nextcloudpi/commit/a2e6356) (2020-08-02) nc-limits: adjust db size
2+
[v1.28.3](https://github.com/nextcloud/nextcloudpi/commit/cb25e3f) (2020-08-02) ncp-autoupdate-apps: dont fail cron if no updates
3+
4+
[v1.28.2](https://github.com/nextcloud/nextcloudpi/commit/06017a4) (2020-08-02) nc-limits: adjust db size
35

46
[v1.28.1](https://github.com/nextcloud/nextcloudpi/commit/dda010b) (2020-08-02) nc-ramlogs: pin version
57

0 commit comments

Comments
 (0)