cron.sh: export home to avoid permission denied reading non-existent config file

This commit is contained in:
Starbeamrainbowlabs 2020-05-16 15:28:50 +01:00
parent 0747206a4e
commit 0430fc5109
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 4 additions and 0 deletions

View File

@ -1,8 +1,12 @@
#!/usr/bin/env bash
source="/home/ci/sftp-root/CIAptPackages";
destination="/srv/aptosaurus/sources";
aptosaurus="/srv/aptosaurus/aptosaurus.sh";
export HOME="$(dirname "${aptosaurus}")";
# The user account to chown to & run aptosaurus under
# FUTURE: Use own account? Is it worth it for a cron job?
user_account="daemon";