Skip to content

Commit

Permalink
add IPA info tools
Browse files Browse the repository at this point in the history
  • Loading branch information
nazunalika committed Nov 8, 2023
1 parent 4720a6d commit ce53382
Show file tree
Hide file tree
Showing 6 changed files with 610 additions and 19 deletions.
25 changes: 25 additions & 0 deletions mangle/ipa/ipaaudit
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash
# Wrapper for ipaauditor.py audit

case "$ID" in
rocky|centos|rhel)
case "${VERSION_ID:0:1}" in
5|6|7)
echo "Not supported."
exit 3
;;
8)
PYTHON_EXEC="/usr/libexec/platform-python"
;;
*)
PYTHON_EXEC="/usr/bin/python3"
;;
esac ;;
ubuntu|debian)
PYTHON_EXEC="/usr/bin/python3"
;;
fedora)
PYTHON_EXEC="/usr/bin/python3"
esac

$PYTHON_EXEC ipaauditor.py audit "$@"
Loading

0 comments on commit ce53382

Please sign in to comment.