Consistently exit with an error if the OS is not supported by the
firewall manipulation commands. Previously, it would in some cases
print an error but not exit.
echo "block drop out proto tcp from any to 127.0.0.1 port $1" \
| sudo pfctl -a pgbouncer -f -;;
*)
- echo "Unknown OS";;
+ echo "Unknown OS"; exit 1;;
esac
}
fw_reject_port() {
echo "block return-rst out proto tcp from any to 127.0.0.1 port $1" \
| sudo pfctl -a pgbouncer -f -;;
*)
- echo "Unknown OS";;
+ echo "Unknown OS"; exit 1;;
esac
}
echo "block drop out proto tcp from any to 127.0.0.1 port $1" \
| sudo pfctl -a pgbouncer -f -;;
*)
- echo "Unknown OS";;
+ echo "Unknown OS"; exit 1;;
esac
}
fw_reject_port() {
echo "block return-rst out proto tcp from any to 127.0.0.1 port $1" \
| sudo pfctl -a pgbouncer -f -;;
*)
- echo "Unknown OS";;
+ echo "Unknown OS"; exit 1;;
esac
}