From c2afe05c1131d295cf00078634dab7ea0899bd64 Mon Sep 17 00:00:00 2001 From: Jesse Bannon Date: Sun, 31 Aug 2025 18:59:59 -0700 Subject: [PATCH] [DOCKER] Fix & issue in cron (#1325) Fixes the following issue in some people's cron runs: ``` /bin/sh: 4: /config/.cron_wrapper: Syntax error: "&" unexpected ``` --- docker/root/custom-cont-init.d/defaults | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/root/custom-cont-init.d/defaults b/docker/root/custom-cont-init.d/defaults index b61ab8de..cfbc0776 100644 --- a/docker/root/custom-cont-init.d/defaults +++ b/docker/root/custom-cont-init.d/defaults @@ -33,7 +33,7 @@ if [ "$CRON_SCHEDULE" != "" ] ; then echo '#!/bin/bash' > "$CRON_WRAPPER_SCRIPT" echo "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" >> "$CRON_WRAPPER_SCRIPT" echo "cd \"$DEFAULT_WORKSPACE\"" >> "$CRON_WRAPPER_SCRIPT" - echo ". \"$CRON_SCRIPT\" |& tee -a \"$LOGS_TO_STDOUT\"" >> "$CRON_WRAPPER_SCRIPT" + echo ". \"$CRON_SCRIPT\" | tee -a \"$LOGS_TO_STDOUT\"" >> "$CRON_WRAPPER_SCRIPT" chmod +x "$CRON_WRAPPER_SCRIPT" chown abc:abc "$CRON_WRAPPER_SCRIPT"