aboutsummaryrefslogtreecommitdiffstats
path: root/main/lxc/lxc.initd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-03-10 12:51:45 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-03-10 12:51:45 +0000
commit0ca90c014d3039521298a7a4310f47451d498066 (patch)
treeb2f8d514472d9860446e8c68743ee19eeeeae95d /main/lxc/lxc.initd
parent6760f3de744dac9b9e48c305a01e7f74a0985ba9 (diff)
main/lxc: fix error handling when lxc.utsname is unset
Diffstat (limited to 'main/lxc/lxc.initd')
-rw-r--r--main/lxc/lxc.initd4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/lxc/lxc.initd b/main/lxc/lxc.initd
index 298051f1f1a..1b348894d40 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
}