aboutsummaryrefslogtreecommitdiff
path: root/dbx-create
blob: 18fb211a01f13c031513cf5a5f4818ece8cecff4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env bash
# SPDX-License-Identifier: GPL-3.0-only

set -euo pipefail

C="dbx"

if ! container system status &>/dev/null; then
	container system start
fi

if container list --all | grep $C >/dev/null; then
	echo "already created"
	exit
fi

container create --name $C --publish 4222:22 $C