fix firewall file permissions and remove set -e