[packages/lxc] fix HOSTNAME sed

glen glen at pld-linux.org
Tue Nov 19 00:45:00 CET 2013


commit 81df689992ab74aebe7d1d7708d5d4c15f4bd0a0
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Nov 19 01:44:57 2013 +0200

    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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lxc.git/commitdiff/81df689992ab74aebe7d1d7708d5d4c15f4bd0a0



More information about the pld-cvs-commit mailing list