discourse OK
This commit is contained in:
+5
-13
@@ -432,20 +432,12 @@ function launch_container() {
|
||||
arg1_required "$@"
|
||||
local ct="$1"
|
||||
if ! container_exists "$ct"; then
|
||||
echo "container <$ct> about to be created ..."
|
||||
local extra_release="${2:-}"
|
||||
if [[ -n "$extra_release" ]] && ! lxc image info "${extra_release}-miaou" >/dev/null; then
|
||||
echoerrn "unknown extra_release <${extra_release}-miaou>!\nHINT : please add it into /etc/miaou/defaults.yaml, then re-install miaou!"
|
||||
exit 128
|
||||
fi
|
||||
echo -e "container <$ct> about to be created ..."
|
||||
|
||||
if [[ -n "$extra_release" ]]; then
|
||||
echoerrn "FIXME: lxc-miaou-create -o release=bookworm should be implemented ...."
|
||||
lxc-miaou-create "$ct" "$extra_release"
|
||||
else
|
||||
lxc-miaou-create "$ct"
|
||||
fi
|
||||
echo "DONE"
|
||||
# shellcheck disable=SC2068
|
||||
lxc-miaou-create "$ct" ${@:2}
|
||||
|
||||
PREFIX="" echo "DONE"
|
||||
fi
|
||||
|
||||
if ! container_running "$ct"; then
|
||||
|
||||
Reference in New Issue
Block a user