debian-image-builder-frontend/schutzbot/save_journal.sh
2025-03-06 13:12:33 +01:00

7 lines
234 B
Bash
Executable file

#!/bin/bash
# use tee, otherwise shellcheck complains
sudo journalctl --boot | tee journal-log >/dev/null
# copy journal to artifacts folder which is then uploaded to secure S3 location
cp journal-log "${ARTIFACTS:-/tmp/artifacts}"