All Squeeze templates - HOSTNAME Fix

apmuthu

Renowned Member
Feb 26, 2009
871
11
83
Chennai - India & Singapore
github.com
Further to the bug and fix at:
http://forum.proxmox.com/threads/5825-Post-DAB-Error?p=33036#post33036
all my (and possibly others' as well) squeeze template build file set's post install setup file will need to replace the following:
Code:
HOSTNAME=`head -n 1 /etc/hostname|awk '{ print $1; }'`
if [ "X${HOSTNAME}" = "Xlocalhost" ] ; then
with
Code:
HNAME=`head -n 1 /etc/hostname|awk '{ print $1; }'`
if [ "X${HNAME}" = "Xlocalhost" ] ; then
in order to compile correctly henceforth.