Skip to content

Instantly share code, notes, and snippets.

@jezman
Last active February 11, 2024 21:02
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jezman/ebd4bfb48b4f139c83a3cc83df2ab0f9 to your computer and use it in GitHub Desktop.
Save jezman/ebd4bfb48b4f139c83a3cc83df2ab0f9 to your computer and use it in GitHub Desktop.
PROXMOX: Apply network settings without reboot.
#/bin/bash
if [[ "$EUID" -ne 0 ]]; then
echo "Permission denied"
exit 1
fi
cp /etc/network/interfaces /etc/network/interfaces.new
systemctl restart networking.service
echo "[ + ] Configuration updated."
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment