#!/usr/bin/with-contenv sh # shellcheck shell=sh SIDECAR_NEWSUPDATER=${SIDECAR_NEWSUPDATER:-0} NC_NEWSUPDATER_THREADS=${NC_NEWSUPDATER_THREADS:-10} NC_NEWSUPDATER_TIMEOUT=${NC_NEWSUPDATER_TIMEOUT:-300} NC_NEWSUPDATER_INTERVAL=${NC_NEWSUPDATER_INTERVAL:-900} NC_NEWSUPDATER_LOGLEVEL=${NC_NEWSUPDATER_LOGLEVEL:-error} # Continue only if sidecar news updater container if [ "$SIDECAR_NEWSUPDATER" != "1" ]; then exit 0 fi echo ">>" echo ">> Sidecar news updater container detected for Nextcloud" echo ">>" # Nextcloud News Updater config file (https://github.com/nextcloud/news-updater#usage) cat > /etc/news_updater.ini < /etc/services.d/news-updater/run <