diff --git a/Makefile b/Makefile index 620eabd..7c78046 100644 --- a/Makefile +++ b/Makefile @@ -2,20 +2,20 @@ install: all all: - @mkdir /etc/firewall - @mkdir /etc/firewall/custom - @echo "etc folder created" - @install -m 755 firewall /etc/init.d/firewall - @echo "Program added to init directory" - @cp etc/firewall/*.conf /etc/firewall - @update-rc.d firewall defaults - @echo "The program is successfully installed" + @mkdir /etc/firewall + @mkdir /etc/firewall/custom + @echo "etc folder created" + @install -m 755 firewall /etc/init.d/firewall + @echo "Program added to init directory" + @cp etc/firewall/*.conf /etc/firewall + @update-rc.d firewall defaults + @echo "The program is successfully installed" .PHONY: uninstall uninstall: - @rm -rf /etc/firewall - @echo "Removed /etc/firewall" - @rm -rf /etc/init.d/firewall - @echo "Removed /etc/init.d/firewall" - @update-rc.d firewall remove - @echo "The program is successfully uninstalled" + @rm -rf /etc/firewall + @echo "Removed /etc/firewall" + @rm -rf /etc/init.d/firewall + @echo "Removed /etc/init.d/firewall" + @update-rc.d firewall remove + @echo "The program is successfully uninstalled" diff --git a/readme.md b/readme.md index e4e5fcc..90a1af3 100644 --- a/readme.md +++ b/readme.md @@ -38,11 +38,11 @@ And follow these steps to install: git clone git://github.com/bmaeser/iptables-boilerplate.git cd iptables-boilerplate - make + sudo make To uninstall run: - make uninstall + sudo make uninstall ### On other systems