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