Update vm-core.func
This commit is contained in:
parent
3ebff159e8
commit
5cf528254a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user