#!/bin/bash # Install the latest News third party app # # Copyleft 2017 by Ignacio Nunez Hernanz # GPL licensed (see end of file) * Use at your own risk! # # Usage: # # ./installer.sh nc-notify-updates.sh () # # See installer.sh instructions for details # More at: https://ownyourbits.com # ACTIVE_=yes USER_=admin CHECKINTERVAL=60 DESCRIPTION="Notify in NC when a NextCloudPi update is available" NCDIR=/var/www/nextcloud install() { # timers cat > /etc/systemd/system/nc-notify-updates.service < /usr/local/bin/ncp-notify-update < \$NOTIFIED EOF chmod +x /usr/local/bin/ncp-notify-update cat > /usr/local/bin/ncp-notify-unattended-upgrade < /etc/systemd/system/nc-notify-updates.timer <