#!/bin/bash

# Checks wether upgrade-and-reboot is currently running.

if [[ -f "/var/lib/bundlewrap/soft-${node.name}/UNATTENDED" ]]
then
    echo "Sorry, can't $MOLLYGUARD_CMD now, upgrade-and-reboot is running"
    exit 1
fi