Browse Source

Fix: postgres-backup-s3 crontab syntax

It was yielding an error "user lookup failed: user: unknown user
/bin/sh"
pull/169/head
Matías García Isaía 2 months ago
parent
commit
a413998731
No known key found for this signature in database GPG Key ID: 9E4B036DF45CE8B8
  1. 2
      postgres-backup-s3/run.sh

2
postgres-backup-s3/run.sh

@ -9,6 +9,6 @@ fi
if [ "${SCHEDULE}" = "**None**" ]; then
sh backup.sh
else
echo -e "SHELL=/bin/sh\n${SCHEDULE} /bin/sh /backup.sh" > /etc/crontabs/root
echo -e "SHELL=/bin/sh\n${SCHEDULE} root /bin/sh /backup.sh" > /etc/crontabs/root
exec go-crond /etc/crontabs/root
fi
Loading…
Cancel
Save