provisioning tool for building opinionated architecture
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.
 
 

16 lines
424 B

#!/bin/bash
function restart_dnsmasq() {
echo -n "lxd: restart dnsmasq... "
lxc network get lxdbr0 raw.dnsmasq >/tmp/dnsmaq.conf
lxc network set lxdbr0 raw.dnsmasq - </tmp/dnsmaq.conf
echo "OK"
}
## MAIN
. "$MIAOU_BASEDIR/lib/init.sh"
restart_dnsmasq
echo "WARNING: restarting dnsmasq may break your NFT ruleset!"
echo "You should reload NFTables as well..."
echo "sudo systemctl reload nftables.service"