#!/bin/bash +ex
# Set Hostname
HOSTNAME=infinoted
echo "$HOSTNAME" > /etc/hostname
sed -i "s|127.0.1.1 \(.*\)|127.0.1.1 $HOSTNAME|" /etc/hosts
#Install Infinoted
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get -y \
	-o DPkg::Options::=--force-confdef \
	-o DPkg::Options::=--force-confold \
	install infinoted avahi-daemon


