mirror of
https://github.com/community-scripts/ProxmoxVED.git
synced 2026-02-25 05:57:26 +00:00
Update vm-core.func
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user