Skip to content

Instantly share code, notes, and snippets.

@wasdee
Created December 24, 2022 09:14
Show Gist options
  • Save wasdee/7599833f46b499a6adbac36b5567b231 to your computer and use it in GitHub Desktop.
Save wasdee/7599833f46b499a6adbac36b5567b231 to your computer and use it in GitHub Desktop.
check if cmd exist bash
# check if use firewalld
if [ -x "$(command -v firewall-cmd)" ]; then
firewall-cmd --permanent --add-masquerade
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment