]> git.openstreetmap.org Git - chef.git/commitdiff
Only use ?SECTION on 16.04
authorTom Hughes <tom@compton.nu>
Mon, 16 May 2016 14:21:08 +0000 (15:21 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 16 May 2016 14:21:08 +0000 (15:21 +0100)
cookbooks/networking/templates/default/shorewall-rules.erb

index 8567a8d5a321ff5a6f9bd0376ed000cd01d26fbf..dbe0120cb21c4ff39e71f38acea306abcc923dc6 100644 (file)
@@ -1,6 +1,10 @@
 # DO NOT EDIT - This file is being maintained by Chef
 
+<% if node[:lsb][:release].to_f >= 16.04 -%>
 ?SECTION NEW
+<% else -%>
+SECTION NEW
+<% end -%>
 
 # ACTION       SOURCE  DEST    PROTO           DEST            SOURCE  ORIGINAL        RATE
 #                                              PORTS           PORTS   DEST            LIMIT