#!/bin/bash # Automatically apply NextCloudPi updates # # Copyleft 2017 by Ignacio Nunez Hernanz # GPL licensed (see end of file) * Use at your own risk! # # Usage: # # ./installer.sh nc-autoupdate-ncp.sh # # See installer.sh instructions for details # More at: https://ownyourbits.com # ACTIVE_=no NOTIFYUSER_=admin DESCRIPTION="Automatically apply NextCloudPi updates" configure() { [[ $ACTIVE_ != "yes" ]] && { rm /etc/cron.daily/ncp-autoupdate echo "automatic NextCloudPi updates disabled" return 0 } cat > /etc/cron.daily/ncp-autoupdate <