From 9bd6f81fb60fed3fc49cfee8515972ecc232583a Mon Sep 17 00:00:00 2001 From: nachoparker Date: Tue, 15 May 2018 06:47:37 +0200 Subject: added nc-autoupdate-nc --- etc/ncp-config.d/nc-autoupdate-nc.sh | 59 ++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 etc/ncp-config.d/nc-autoupdate-nc.sh (limited to 'etc') diff --git a/etc/ncp-config.d/nc-autoupdate-nc.sh b/etc/ncp-config.d/nc-autoupdate-nc.sh new file mode 100644 index 00000000..6d775ab8 --- /dev/null +++ b/etc/ncp-config.d/nc-autoupdate-nc.sh @@ -0,0 +1,59 @@ +#!/bin/bash + +# Automatically apply Nextcloud updates +# +# Copyleft 2018 by Ignacio Nunez Hernanz +# GPL licensed (see end of file) * Use at your own risk! +# +# Usage: +# +# ./installer.sh nc-autoupdate-nc.sh +# +# See installer.sh instructions for details +# More at: https://ownyourbits.com +# + +ACTIVE_=no +NOTIFYUSER_=ncp +DESCRIPTION="Automatically apply Nextcloud updates" +VERSION=13.0.2 + +configure() +{ + [[ $ACTIVE_ != "yes" ]] && { + rm /etc/cron.daily/ncp-autoupdate-nc + echo "automatic Nextcloud updates disabled" + return 0 + } + + cat > /etc/cron.daily/ncp-autoupdate-nc <