Skip to content

Instantly share code, notes, and snippets.

@jezman
Last active Mar 10, 2020
Embed
What would you like to do?
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