diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-03-10 12:51:45 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-03-10 12:51:45 +0000 |
commit | 0ca90c014d3039521298a7a4310f47451d498066 (patch) | |
tree | b2f8d514472d9860446e8c68743ee19eeeeae95d /main/lxc | |
parent | 6760f3de744dac9b9e48c305a01e7f74a0985ba9 (diff) | |
download | aports-0ca90c014d3039521298a7a4310f47451d498066.tar.bz2 aports-0ca90c014d3039521298a7a4310f47451d498066.tar.xz |
main/lxc: fix error handling when lxc.utsname is unset
Diffstat (limited to 'main/lxc')
-rw-r--r-- | main/lxc/lxc.initd | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/lxc/lxc.initd b/main/lxc/lxc.initd index 298051f1f1..1b348894d4 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 } |