add audit
This commit is contained in:
+5
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user