aboutsummaryrefslogtreecommitdiffstats
path: root/dabuild-admin
blob: 86c5da8e0951e310d4cb830e6e26807f214c69ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh

readonly cmd=$1

manage_config() {
	docker run --user 1000:1000 --rm -it --workdir /mnt/abuild \
		-v dabuild-config:/mnt/abuild alpine sh
}

usage() {
	cat <<- EOF
	dabuild: version (unknown)

	Available commands:
	  config: access abuild configuration
	  help: this help screen
	EOF
}


case $cmd in
	config) manage_config;;
	help) usage;;
	*) usage; exit 1;;
esac