Skip to content

[hotfix] run backup script from project root

  • SYMPTOM: backup script works from ansible playbook but not from crontab
  • CAUSE: --env-file .env is needed to provide needed ports to test_runner container config in docker-compose file, but .env is only a valid path if script is running from project root. this is true for ansible playbook (which sets homedir), but not crontab
  • FIX: cd to ${project_root} at the top of /bin/backup to preserve the invariant that it always runs from project root and relative paths may safely be used
  • SIDE-EFFECT: we need no longer refer to the absolute filepath of the docker-compose file, which makes for less noise in the up/down aliases

Merge request reports