#!/bin/bash # Unattended upgrades installation on NextcloudPi # # Copyleft 2017 by Ignacio Nunez Hernanz # GPL licensed (see end of file) * Use at your own risk! # # More at: ownyourbits.com # install() { apt-get update apt-get install -y --no-install-recommends unattended-upgrades rm -f /etc/apt/apt.conf.d/20auto-upgrades /etc/apt/apt.conf.d/02-armbian-periodic } configure() { [[ $ACTIVE == "yes" ]] && local AUTOUPGRADE=1 || local AUTOUPGRADE=0 [[ $AUTOREBOOT == "yes" ]] && local AUTOREBOOT=true || local AUTOREBOOT=false cat > /etc/apt/apt.conf.d/20ncp-upgrades <