Gnuviechadmin component to manage MySQL/MariaDB databases.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
438 B

set -e
if grep -q '^Name=\\*' "${debootstrap_network}"; then
primary_nic=$(ls -1 /sys/class/net | grep -v lo |sort | head -1)
sed -i "s/^Name=e\\*/Name=${primary_nic}/" \
systemctl restart systemd-networkd.service
echo "Changed systemd network configuration"
echo "Systemd network configuration has already been changed"