You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

12 lines
282 B

#!/bin/sh
echo "all upgrade scripts finished"
echo "writing logs to disk and rebooting"
logfile=/sysroot/var/log/upgrade.log
# back up old logfile, if present
[ -e $logfile ] && rm -rf $logfile.old && mv $logfile $logfile.old
# write out the logfile
journalctl -a -m > $logfile