Added help info for user about making iptables changes persistent

This commit is contained in:
Mike Slinn
2014-07-29 15:44:43 -07:00
parent 6d200aa340
commit 6a2d2ebfd1

View File

@@ -25,6 +25,11 @@ function createDir {
if [ "$(which iptables)" ]; then if [ "$(which iptables)" ]; then
echo "Opening port $GITBUCKET_PORT in firewall." echo "Opening port $GITBUCKET_PORT in firewall."
sudo iptables -A INPUT -p tcp --dport $GITBUCKET_PORT -j ACCEPT sudo iptables -A INPUT -p tcp --dport $GITBUCKET_PORT -j ACCEPT
echo "Please use iptables-persistent:"
echo " sudo apt-get install iptables-persistent"
echo "After installed, you can save/reload iptables rules anytime:"
echo " sudo /etc/init.d/iptables-persistent save"
echo " sudo /etc/init.d/iptables-persistent reload"
fi fi
createDir "$GITBUCKET_HOME" createDir "$GITBUCKET_HOME"