#!/bin/bash # Automatically apply Nextcloud updates # # Copyleft 2018 by Ignacio Nunez Hernanz # GPL licensed (see end of file) * Use at your own risk! # # More at: https://ownyourbits.com # ACTIVE_=no NOTIFYUSER_=ncp DESCRIPTION="Automatically apply Nextcloud updates" # just change this value and re-activate in update.sh to upgrade users VERSION=13.0.5 configure() { [[ "$ACTIVE_" != "yes" ]] && { rm /etc/cron.daily/ncp-autoupdate-nc echo "automatic Nextcloud updates disabled" return 0 } cat > /etc/cron.daily/ncp-autoupdate-nc <