try to not show crontab backup output

This commit is contained in:
2024-12-22 13:35:58 +01:00
parent c6e4767c37
commit 147338f56f
+1 -1
View File
@@ -165,7 +165,7 @@ function run_prometheus_exporter() {
echo "- Add Cronjob to Crontab"
echo "$RUN_PROMETHEUS_EXPORTER su -c '/usr/local/bin/borg_exporter.sh 2>&1' -s /bin/bash borg" >> /tmp/cron_bkp
crontab /tmp/cron_bkp
crontab /tmp/cron_bkp > /dev/null 2>&1
rm /tmp/cron_bkp
if [ ! -f "/var/log/borg_exporter.prom" ]; then