[Lunar-commits] <moonbase-core> iptables: create /etc/config.d if it does not exist

Stefan Wold ratler at lunar-linux.org
Thu Jan 3 23:30:58 CET 2013


commit fd5b18e8e334e3b235daacdc291ca9c4730b74e2
Author: Stefan Wold <ratler at lunar-linux.org>
Date: Thu, 03 Jan 2013 14:30:58 -0800
URL: https://github.com/lunar-linux/moonbase-core/commit/fd5b18e8e334e3b235daacdc291ca9c4730b74e2

iptables: create /etc/config.d if it does not exist
---
  security/iptables/BUILD | +1/-0     
  1 file changed, 1 insertion(+)

--- a/security/iptables/BUILD
+++ b/security/iptables/BUILD
@@ -24,6 +24,7 @@
 
   # add empty iptables file for flushing
   if [ ! -f /etc/config.d/iptables-empty ]; then
+    [ ! -d /etc/config.d ] && mkdir -p /etc/config.d
     cp $SCRIPT_DIRECTORY/files/iptables-empty /etc/config.d/iptables-empty
   fi &&
   # little wrapper for systemd's usage




More information about the Lunar-commits mailing list