#!/bin/bash set -e # docker images only [[ -f /.docker-image ]] && { cat < /etc/cron.daily/refresh_notify_push #!/usr/bin/env bash . /usr/local/etc/library.sh ncc notify_push:self-test || { killall notify_push sleep 1 start_notify_push } EOF chmod +x /etc/cron.daily/refresh_notify_push } # for non docker images [[ ! -f /.docker-image ]] && { cat > /etc/systemd/system/refresh_notify_push.service < /etc/systemd/system/refresh_notify_push.path <