Skip to content
Snippets Groups Projects
Verified Commit 68c92f65 authored by Michal Hrusecky's avatar Michal Hrusecky :mouse:
Browse files

schnapps: Support for cert-backup

parent 7c5494a5
No related branches found
No related tags found
No related merge requests found
......@@ -286,6 +286,7 @@ rollback() {
if btrfs subvolume snapshot "$TMP_MNT_DIR"/@$ROLL_TO "$TMP_MNT_DIR"/@ > /dev/null; then
echo "Current state saved as snapshot number $NUMBER"
echo "Rolled back to snapshot $ROLL_TO"
[ -z "`which cert-backup`" ] || cert-backup -X "$TMP_MNT_DIR"/@
else
rm -f "$TMP_MNT_DIR"/$NUMBER.info
mv "$TMP_MNT_DIR"/@$NUMBER "$TMP_MNT_DIR"/@
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment