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

View file

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