Allow running bastille and subcomands with help flags as regular user

This commit is contained in:
Lars Engels
2023-03-16 20:58:11 +01:00
parent 6776427e5a
commit 64c3b6045e
33 changed files with 74 additions and 14 deletions

View File

@@ -588,6 +588,8 @@ help|-h|--help)
;;
esac
bastille_root_check
if echo "$3" | grep '@'; then
BASTILLE_JAIL_IP=$(echo "$3" | awk -F@ '{print $2}')
BASTILLE_JAIL_INTERFACES=$( echo "$3" | awk -F@ '{print $1}')