Update vm-core.func

This commit is contained in:
CanbiZ 2025-05-26 13:35:56 +02:00
parent 3ebff159e8
commit 5cf528254a

View File

@ -27,6 +27,8 @@ load_functions() {
pve_check
arch_check
ssh_check
check_hostname_conflict
set_std_mode
# add more
}
@ -440,6 +442,13 @@ exit_script() {
exit
}
check_hostname_conflict() {
if qm list | awk '{print $2}' | grep -qx "$HN"; then
msg_error "Hostname $HN already in use by another VM."
exit 1
fi
}
set_description() {
DESCRIPTION=$(
cat <<EOF