From 73aeaf15a6cbeb6e8d3b2dcbf80b5b937c1b3f43 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Mon, 27 Aug 2018 10:56:06 +0200 Subject: [PATCH] fix: [docker-host] remove warning about ``/etc/default/lxc`` not existent --- precise/host/hooks/install.d/70-0k.sh | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/precise/host/hooks/install.d/70-0k.sh b/precise/host/hooks/install.d/70-0k.sh index d8d17e1..f9596af 100755 --- a/precise/host/hooks/install.d/70-0k.sh +++ b/precise/host/hooks/install.d/70-0k.sh @@ -103,19 +103,21 @@ apt-get install -y kal-shlib-charm > /etc/default/lxc + } + [ -d /usr/share/lxc/templates ] && { + ln -sfn /opt/apps/lxc-scripts/usr/lib/lxc/templates/lxc-0k-ubuntu-cloud /usr/share/lxc/templates + echo TEMPLATE_PATH=/usr/share/lxc/templates >> /etc/default/lxc + } fi - [ -d /usr/lib/lxc/templates ] && { - ln -sfn /opt/apps/lxc-scripts/usr/lib/lxc/templates/lxc-0k-ubuntu-cloud /usr/lib/lxc/templates/ - echo TEMPLATE_PATH=/usr/lib/lxc/templates >> /etc/default/lxc - } - [ -d /usr/share/lxc/templates ] && { - ln -sfn /opt/apps/lxc-scripts/usr/lib/lxc/templates/lxc-0k-ubuntu-cloud /usr/share/lxc/templates - echo TEMPLATE_PATH=/usr/share/lxc/templates >> /etc/default/lxc - } ) ##