aptosaurus: something fishy is going on with the cron script......
This commit is contained in:
parent
e3afca72e0
commit
c8a70c8ca9
2 changed files with 3 additions and 1 deletions
|
@ -218,7 +218,9 @@ task_update-cron() {
|
||||||
|
|
||||||
# ....but only display it if something went wrong
|
# ....but only display it if something went wrong
|
||||||
if [[ "${exit_code}" -ne 0 ]]; then
|
if [[ "${exit_code}" -ne 0 ]]; then
|
||||||
|
echo "===== Transcript =====";
|
||||||
cat "${tmpfile}";
|
cat "${tmpfile}";
|
||||||
|
echo "========= end ========";
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm "${tmpfile}";
|
rm "${tmpfile}";
|
||||||
|
|
2
cron.sh
2
cron.sh
|
@ -19,5 +19,5 @@ chown -R "${user_account}:${user_account}" "${destination}";
|
||||||
|
|
||||||
# Re-run aptosaurus
|
# Re-run aptosaurus
|
||||||
aptosaurus_dir="$(dirname "${aptosaurus}")";
|
aptosaurus_dir="$(dirname "${aptosaurus}")";
|
||||||
cd "${aptosaurus_dir}" || exit 1;
|
cd "${aptosaurus_dir}" || { echo "Failed to cd into aptosaurus directory"; exit 1};
|
||||||
sudo -u "${user_account}" bash "$(basename "${aptosaurus}")" update-cron;
|
sudo -u "${user_account}" bash "$(basename "${aptosaurus}")" update-cron;
|
||||||
|
|
Loading…
Reference in a new issue