Browse Source

handle no lxc installed

pull/96/head
Miron 5 years ago
parent
commit
b48730064a
1 changed files with 8 additions and 6 deletions
  1. 8
    6
      libexec/gconfig

+ 8
- 6
libexec/gconfig View File

@@ -1,9 +1,11 @@
VM_SSH_PORT=2223
if [ -z "$LXC_EXECUTE" ]; then
ver=`lxc-start --version`
if dpkg --compare-versions $ver ge 1.0.0 ; then
LXC_EXECUTE=lxc-execute
else
LXC_EXECUTE=lxc-start
if [ -n "$USE_LXC" ]; then
if [ -z "$LXC_EXECUTE" ]; then
ver=`lxc-start --version`
if dpkg --compare-versions $ver ge 1.0.0 ; then
LXC_EXECUTE=lxc-execute
else
LXC_EXECUTE=lxc-start
fi
fi
fi

Loading…
Cancel
Save