Update build.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
This commit is contained in:
parent
dfa6bcf9c7
commit
fed24086ea
@ -1688,10 +1688,18 @@ edit_default_storage() {
|
||||
local vf="/usr/local/community-scripts/default.vars"
|
||||
|
||||
# make sure file exists
|
||||
if [ ! -f "$vf" ]; then
|
||||
msg_info "No default.vars found, creating $vf"
|
||||
mkdir -p /usr/local/community-scripts
|
||||
if [[ ! -f "$vf" ]]; then
|
||||
# still create
|
||||
mkdir -p "$(dirname "$vf")"
|
||||
touch "$vf"
|
||||
|
||||
if select_storage template; then
|
||||
echo "var_template_storage=$STORAGE_RESULT" >>"$vf"
|
||||
fi
|
||||
|
||||
if select_storage container; then
|
||||
echo "var_container_storage=$STORAGE_RESULT" >>"$vf"
|
||||
fi
|
||||
fi
|
||||
|
||||
# reuse the same Whiptail selection we already have
|
||||
|
Loading…
x
Reference in New Issue
Block a user