proxmox: preserve hostname

This commit is contained in:
Koushik Dutta
2024-10-19 21:48:19 -07:00
parent e40bc3ddee
commit 51732d0dcd

View File

@@ -129,6 +129,13 @@ fi
if [ -n "$RESTORE_HOSTNAME" ]
then
pct set $VMID --hostname $RESTORE_HOSTNAME
if [ "$?" != "0" ]
then
echo ""
echo "pct hostname restore failed"
echo ""
echo "Ignoring... Please verify your container's dns settings."
fi
fi
CONF=/etc/pve/lxc/$VMID.conf