aptosaurus: something fishy is going on with the cron script......

This commit is contained in:
Starbeamrainbowlabs 2020-05-31 01:51:48 +01:00
parent e3afca72e0
commit c8a70c8ca9
Signed by: sbrl
GPG key ID: 1BE5172E637709C2
2 changed files with 3 additions and 1 deletions

View file

@ -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}";

View file

@ -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;