schutzbot: save journal as artifact
This commit is contained in:
parent
b8a4b26013
commit
f5901a96ee
1 changed files with 7 additions and 0 deletions
7
schutzbot/save_journal.sh
Executable file
7
schutzbot/save_journal.sh
Executable 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}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue