cron.sh: export home to avoid permission denied reading non-existent config file
This commit is contained in:
parent
0747206a4e
commit
0430fc5109
1 changed files with 4 additions and 0 deletions
4
cron.sh
4
cron.sh
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue