10 lines
278 B
Bash
Executable file
10 lines
278 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Add the server's public IPv4 address to NetworkManager
|
|
# Designed to be used with https://git.exozy.me/exozyme/porkbun-dynamic-dns-python/
|
|
|
|
if [ "$1" = "A" ]; then
|
|
nmcli con mod 'Wired connection 1' ipv4.addresses "$2"
|
|
systemctl restart NetworkManager
|
|
fi
|