Correctly calculate the lists of both the sysvms to startup and the
[invirt/packages/invirt-xen-config.git] / debian / invirt-xen-config.init
index 0613ff9..567d7d2 100755 (executable)
@@ -13,9 +13,10 @@ PACKAGE=invirt-xen-config
 NAME="$PACKAGE"
 DESC="Invirt Xen host"
 PARENTPACKAGE=xend
-SYSVM_FILES=(/etc/xen/sysvms/s_*)
+SYSVM_TEMPLATES=(/etc/xen/sysvms/s_*.mako)
+SYSVM_FILES=("${SYSVM_TEMPLATES[@]/.mako/}")
 SYSVMS=("${SYSVM_FILES[@]/#\/etc\/xen\/sysvms\/}")
-GEN_FILES=(/etc/xen/xend-config.sxp.invirt)
+GEN_FILES=(/etc/xen/xend-config.sxp.invirt "${SYSVM_FILES[@]}")
 
 dpkg -s "$PACKAGE" >/dev/null 2>/dev/null || exit 0