Fix /etc/hosts

This commit is contained in:
jalr 2018-05-19 20:03:18 +02:00
parent 518316924a
commit c9a647f0dc
2 changed files with 2 additions and 2 deletions

View file

@ -105,7 +105,7 @@
{
"type": "file",
"source": "hosts",
"destination": "/tmp/extra/etc/hosts"
"destination": "/etc/hosts.template"
},
{
"type": "shell",

View file

@ -199,7 +199,7 @@ PARTTABLE
hostname=$(ip -o link show | sed -ne 's#^.*link/ether \([0-9a-f:]*\).*$#\1#p' | sed -ne '1{s/://g;p}')
echo $hostname > ${rootmnt}/etc/hostname
sed -i "s/@@HOSTNAME@@/$hostname/" ${rootmnt}/etc/hosts
sed "s/@@HOSTNAME@@/$hostname/" ${rootmnt}/etc/hosts.template > ${rootmnt}/etc/hosts
if [ -z "$labsync_localboot" ]; then
labsync_set_environment LABSYNC "$torrent_name"