Merge pull request #5052 from dokku/5020-sudo-crontab

Run crontab under sudo to support rhel systems
This commit is contained in:
Jose Diaz-Gonzalez
2022-02-28 22:51:21 -05:00
committed by GitHub
10 changed files with 63 additions and 11 deletions

View File

@@ -37,6 +37,13 @@ teardown() {
assert_output "$help_output"
}
@test "(cron) installed" {
run /bin/bash -c "test -f /etc/sudoers.d/dokku-cron"
echo "output: $output"
echo "status: $status"
assert_success
}
@test "(cron) invalid [missing-keys]" {
run deploy_app python dokku@dokku.me:$TEST_APP template_cron_file_invalid
echo "output: $output"