add audit

This commit is contained in:
David Young
2026-10-28 15:57:54 -06:00
parent 9b9f1d5fdd
commit 842225fd40
6 changed files with 614 additions and 10 deletions
+5 -2
View File
@@ -4,11 +4,14 @@
set -e
# Provides enable_services
source "$HOME/.local/share/MiniServer/utils.sh"
echo "Installing Avahi and nss-mdns..."
sudo pacman -S --noconfirm avahi nss-mdns
echo "Enabling Avahi daemon..."
sudo systemctl enable avahi-daemon.service
# Left off if you turned it off with audit
enable_services avahi-daemon.service
echo "Updating /etc/nsswitch.conf..."
sudo sed -i 's/^hosts:.*/hosts: mymachines mdns_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] files myhostname dns/' /etc/nsswitch.conf