toolkit/mangle/ipa/ipaquery

27 lines
496 B
Plaintext
Raw Normal View History

2023-11-08 07:25:28 +00:00
#!/bin/bash
# Wrapper for ipaauditor.py query
2024-07-17 22:30:24 +00:00
source /etc/os-release
2023-11-08 07:25:28 +00:00
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
2024-07-17 22:30:24 +00:00
$PYTHON_EXEC ipaauditor.py query "$@"