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 - } ) ##