discourse OK

This commit is contained in:
pvincent
2024-10-14 01:17:26 +04:00
parent 3ad16ee583
commit e60d90c7e7
5 changed files with 50 additions and 38 deletions
+5 -13
View File
@@ -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