From 81df689992ab74aebe7d1d7708d5d4c15f4bd0a0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 19 Nov 2013 01:44:57 +0200 Subject: [PATCH] fix HOSTNAME sed --- lxc-pld.in.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lxc-pld.in.sh b/lxc-pld.in.sh index 849af92..c4d0680 100755 --- a/lxc-pld.in.sh +++ b/lxc-pld.in.sh @@ -61,7 +61,7 @@ configure_pld() echo 0 > $rootfs_path/selinux/enforce # configure the network using the dhcp - sed -i -e "/^HOSTNAME=.*/HOSTNAME=${utsname}/" ${rootfs_path}/etc/sysconfig/network + sed -i -e "s/^HOSTNAME=.*/HOSTNAME=${utsname}/" ${rootfs_path}/etc/sysconfig/network # set hostname on systemd if [ $release = "3.0" ]; then -- 2.44.0