Skip to content
2 changes: 1 addition & 1 deletion nextcloud_install_production.sh
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ nextcloud_occ config:app:set updatenotification notify_groups --value="[]"
print_text_in_color "$ICyan" "Configuring update notifications specific for this server..."
download_script STATIC updatenotification
check_command chmod +x "$SCRIPTS"/updatenotification.sh
crontab -u root -l | { cat; echo "59 $AUT_UPDATES_TIME * * * $SCRIPTS/updatenotification.sh > /dev/null 2>&1"; } | crontab -u root -
crontab -u root -l | { cat; echo "59 $AUT_UPDATES_TIME * 1-12 6 $SCRIPTS/updatenotification.sh > /dev/null 2>&1"; } | crontab -u root -

# Change values in php.ini (increase max file size)
# max_execution_time
Expand Down
2 changes: 2 additions & 0 deletions nextcloud_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,8 @@ if [ -f "$SCRIPTS"/updatenotification.sh ]
then
download_script STATIC updatenotification
chmod +x "$SCRIPTS"/updatenotification.sh
crontab -u root -l | grep -v "$SCRIPTS/updatenotification.sh" | crontab -u root -
crontab -u root -l | { cat; echo "59 $AUT_UPDATES_TIME * * 5 $SCRIPTS/updatenotification.sh > /dev/null 2>&1"; } | crontab -u root -
fi

############# Don't upgrade to specific version
Expand Down
4 changes: 2 additions & 2 deletions static/updatenotification.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ then
notify_admin_gui \
"New minor Nextcloud Update!" \
"Nextcloud $NCMIN just became available. Since you are running Automatic \
Updates on Saturdays at $AUT_UPDATES_TIME:00, you don't need to bother about updating \
Updates every month on Saturdays at $AUT_UPDATES_TIME:00, you don't need to bother about updating \
the server to minor Nextcloud versions manually, as that's already taken care of."
else
notify_admin_gui \
Expand Down Expand Up @@ -91,7 +91,7 @@ then
notify_admin_gui \
"New major Nextcloud Update!" \
"Nextcloud $NCVERSION just became available. Please run 'sudo bash \
/var/scripts/update.sh' from your CLI to update your server to Nextcloud $NCVERSION. \
/var/scripts/menu.sh' --> Update Nextcloud from your CLI to update your server to Nextcloud $NCVERSION. \
Before updating though, you should visit https://your-nc-domain/settings/admin/overview \
and make sure that all apps are compatible with the new version. And please never forget to \
create a backup and/or snapshot before updating!"
Expand Down