Configure avahi on regular client installs
This commit is contained in:
parent
47f0beb9bf
commit
1b72fc896d
|
@ -267,6 +267,16 @@ function remove_known_hosts_entries {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function setup_avahi_client {
|
||||||
|
echo $'Configuring Avahi'
|
||||||
|
if [ ! -f /usr/bin/pacman ]; then
|
||||||
|
sudo apt-get -yq install avahi-utils avahi-autoipd avahi-dnsconfd
|
||||||
|
else
|
||||||
|
sudo pacman -S --noconfirm avahi nss-mdns
|
||||||
|
sudo sed -i 's|hosts:.*|hosts: files mdns_minimal [NOTFOUND=return] dns myhostname|g' /etc/nsswitch.conf
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
while [[ $# > 1 ]]
|
while [[ $# > 1 ]]
|
||||||
do
|
do
|
||||||
key="$1"
|
key="$1"
|
||||||
|
@ -303,6 +313,7 @@ do
|
||||||
done
|
done
|
||||||
|
|
||||||
echo $'Configuring client'
|
echo $'Configuring client'
|
||||||
|
setup_avahi_client
|
||||||
setup_client_app
|
setup_client_app
|
||||||
refresh_gpg_keys
|
refresh_gpg_keys
|
||||||
configure_ssh_client
|
configure_ssh_client
|
||||||
|
@ -311,12 +322,6 @@ configure_monkeysphere
|
||||||
remove_known_hosts_entries
|
remove_known_hosts_entries
|
||||||
if [[ $MESH_CLIENT_INSTALL == $'yes' || $MESH_CLIENT_INSTALL == $'y' || $MESH_CLIENT_INSTALL == $'on' ]]; then
|
if [[ $MESH_CLIENT_INSTALL == $'yes' || $MESH_CLIENT_INSTALL == $'y' || $MESH_CLIENT_INSTALL == $'on' ]]; then
|
||||||
echo $'Installing mesh packages'
|
echo $'Installing mesh packages'
|
||||||
if [ ! -f /usr/bin/pacman ]; then
|
|
||||||
sudo apt-get -yq install avahi-utils avahi-autoipd avahi-dnsconfd
|
|
||||||
else
|
|
||||||
sudo pacman -S --noconfirm avahi nss-mdns
|
|
||||||
sudo sed -i 's|hosts:.*|hosts: files mdns_minimal [NOTFOUND=return] dns myhostname|g' /etc/nsswitch.conf
|
|
||||||
fi
|
|
||||||
sudo ${PROJECT_NAME}-mesh-install -f tox_node
|
sudo ${PROJECT_NAME}-mesh-install -f tox_node
|
||||||
sudo ${PROJECT_NAME}-mesh-install -f toxic
|
sudo ${PROJECT_NAME}-mesh-install -f toxic
|
||||||
${PROJECT_NAME}-mesh-install -f qtox
|
${PROJECT_NAME}-mesh-install -f qtox
|
||||||
|
|
Loading…
Reference in New Issue