#!/bin/bash # Automatically apply NextCloudPi updates # # Copyleft 2017 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 NextCloudPi updates" configure() { [[ $ACTIVE_ != "yes" ]] && { rm /etc/cron.daily/ncp-autoupdate echo "automatic NextCloudPi updates disabled" return 0 } cat > /etc/cron.daily/ncp-autoupdate <