[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 ```
This commit is contained in:
parent
1e0c9928a1
commit
c2afe05c11
1 changed files with 1 additions and 1 deletions
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue