This commit is contained in:
2026-03-25 00:31:32 +01:00
parent 0eb8750c86
commit 3e15ec259f

View File

@@ -12,11 +12,14 @@ cat << 'EOF'
EOF EOF
if dpkg -l avahi-daemon 2>/dev/null | grep -q '^ii'; then if systemctl is-active --quiet avahi-daemon; then
echo "Avahi est déjà installé et actif." echo "Avahi est déjà actif accessible via $(hostname).local"
else else
if ! dpkg -l avahi-daemon 2>/dev/null | grep -q '^ii'; then
echo "Installation de Avahi..."
apt install -y avahi-daemon apt install -y avahi-daemon
fi
systemctl enable avahi-daemon systemctl enable avahi-daemon
systemctl start avahi-daemon systemctl start avahi-daemon
echo "Avahi démarré accessible via loustiques.local" echo "Avahi démarré accessible via $(hostname).local"
fi fi