From 0ca90c014d3039521298a7a4310f47451d498066 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 10 Mar 2014 12:51:45 +0000 Subject: main/lxc: fix error handling when lxc.utsname is unset --- main/lxc/lxc.initd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/lxc/lxc.initd b/main/lxc/lxc.initd index 298051f1f..1b348894d 100644 --- a/main/lxc/lxc.initd +++ b/main/lxc/lxc.initd @@ -45,9 +45,9 @@ checkconfig() { [ -z "${CONFIGFILE}" ] && return 1 utsname=$(lxc_get_var lxc.utsname) - if [ ${CONTAINER} != ${utsname} ]; then + if [ "${CONTAINER}" != "${utsname}" ]; then eerror "You should use the same name for the service and the" - eerror "container. Right now the container is called ${utsname}" + eerror "lxc.utsname. Right now the lxc.utsname is set to ${utsname}" return 1 fi } -- cgit v1.2.3