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

9 months ago
  1. #!/bin/bash
  2. function restart_dnsmasq() {
  3. echo -n "lxd: restart dnsmasq... "
  4. lxc network get lxdbr0 raw.dnsmasq >/tmp/dnsmaq.conf
  5. lxc network set lxdbr0 raw.dnsmasq - </tmp/dnsmaq.conf
  6. echo "OK"
  7. }
  8. ## MAIN
  9. . "$MIAOU_BASEDIR/lib/init.sh"
  10. restart_dnsmasq
  11. echo "WARNING: restarting dnsmasq may break your NFT ruleset!"
  12. echo "You should reload NFTables as well..."
  13. echo "sudo systemctl reload nftables.service"