> /tmp/20h12.log 2>&1

This commit is contained in:
fred 2022-10-28 11:15:06 +02:00
parent 3f33b1547c
commit 2640ac7213
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ if [[ ! $crontest ]]; then
[[ ! $(cat /tmp/mycron | grep -F 'PATH') ]] && echo "PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin" >> /tmp/newcron
cat /tmp/mycron >> /tmp/newcron
# ADD 20h12.sh line
echo "12 20 * * * /bin/bash $MY_PATH/../20h12.sh 2>&1>/dev/null" >> /tmp/newcron
echo "12 20 * * * /bin/bash $MY_PATH/../20h12.sh > /tmp/20h12.log 2>&1" >> /tmp/newcron
crontab /tmp/newcron
sudo systemctl enable ipfs
sudo systemctl start ipfs