diff options
Diffstat (limited to 'dbx-stop')
| -rwxr-xr-x | dbx-stop | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/dbx-stop b/dbx-stop new file mode 100755 index 0000000..dcef4a2 --- /dev/null +++ b/dbx-stop @@ -0,0 +1,15 @@ +#!/usr/bin/env bash +# SPDX-License-Identifier: GPL-3.0-only +# SPDX-FileCopyrightText: 2026 Nicholas Rodrigues Lordello <[email protected]> + +set -euo pipefail + +machine="${DBX_MACHINE:-dbx}" + +if ! container system status &>/dev/null; then + exit 0 +fi + +container machine stop "$machine" &>/dev/null \ + || true +container system stop >/dev/null |
