Skip to content

Commit

Permalink
ncp-autoupdate-apps: dont fail cron if no updates
Browse files Browse the repository at this point in the history
Signed-off-by: nachoparker <[email protected]>
  • Loading branch information
nachoparker committed Aug 2, 2020
1 parent 06017a4 commit 81fcd14
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 4 additions & 3 deletions bin/ncp/UPDATES/nc-update-nc-apps-auto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down
4 changes: 3 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 81fcd14

Please sign in to comment.