Update build.func

This commit is contained in:
CanbiZ 2025-06-25 14:47:22 +02:00
parent 62baa61680
commit dadee2fcb3

View File

@ -187,20 +187,13 @@ ssh_check() {
} }
manage_default_storage() { manage_default_storage() {
local current_template="None"
local current_container="None"
local file="/usr/local/community-scripts/default_storage" local file="/usr/local/community-scripts/default_storage"
mkdir -p /usr/local/community-scripts
if [[ -f "$file" ]]; then
source "$file"
current_template="$TEMPLATE_STORAGE"
current_container="$CONTAINER_STORAGE"
fi
local tmpl=$(select_storage template) local tmpl=$(select_storage template)
local cont=$(select_storage container) local cont=$(select_storage container)
mkdir -p /usr/local/community-scripts # Raw Werte schreiben keine Farben!
cat <<EOF >"$file" cat <<EOF >"$file"
TEMPLATE_STORAGE=$tmpl TEMPLATE_STORAGE=$tmpl
CONTAINER_STORAGE=$cont CONTAINER_STORAGE=$cont