schutzbot: save journal as artifact

This commit is contained in:
Sanne Raymaekers 2025-02-25 12:05:04 +01:00 committed by Klara Simickova
parent b8a4b26013
commit f5901a96ee

7
schutzbot/save_journal.sh Executable file
View file

@ -0,0 +1,7 @@
#!/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}"