Fix build-deps on sipb-xen-www
[invirt/packages/invirt-web.git] / debian / sipb-xen-iptables.init
old mode 100644 (file)
new mode 100755 (executable)
index 49f92d3..1c8d933
@@ -17,7 +17,7 @@
 PATH=/sbin:/usr/sbin:/bin:/usr/bin
 DESC="Load the sipb-xen iptables rules"
 NAME=sipb-xen-iptables
-RULES=/usr/local/share/sipb-xen-iptables/iptables.rules
+RULES=/usr/share/sipb-xen-iptables/iptables.rules
 
 # Read configuration variable file if it is present
 [ -r /etc/default/$NAME ] && . /etc/default/$NAME
@@ -38,6 +38,10 @@ do_start()
        #   0 if daemon has been started
        #   1 if daemon was already running
        #   2 if daemon could not be started
+       for i in /usr/share/sipb-xen-iptables/iptables.rules
+       do mako-render $i.mako > $i
+       done
+       
        /sbin/iptables-restore < $RULES
 }