Last active
May 10, 2024 19:02
-
-
Save jezman/ebd4bfb48b4f139c83a3cc83df2ab0f9 to your computer and use it in GitHub Desktop.
PROXMOX: Apply network settings without reboot.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/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