vars
This commit is contained in:
parent
a970a20ecc
commit
5722db51a9
@ -7,6 +7,53 @@
|
|||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
echo "[*] Kernel Information:"
|
||||||
|
uname -a
|
||||||
|
echo
|
||||||
|
|
||||||
|
echo "[*] Checking for /etc/os-release:"
|
||||||
|
if [ -f /etc/os-release ]; then
|
||||||
|
cat /etc/os-release
|
||||||
|
else
|
||||||
|
echo " /etc/os-release not found."
|
||||||
|
fi
|
||||||
|
echo
|
||||||
|
|
||||||
|
echo "[*] Checking for other release files:"
|
||||||
|
for f in /etc/redhat-release /etc/centos-release /etc/debian_version /etc/alpine-release; do
|
||||||
|
if [ -f "$f" ]; then
|
||||||
|
echo " Found $f:"
|
||||||
|
cat "$f"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
echo
|
||||||
|
|
||||||
|
echo "[*] Checking available package managers:"
|
||||||
|
for pm in apt apt-get yum dnf apk; do
|
||||||
|
if command -v $pm &> /dev/null; then
|
||||||
|
echo " Found command: $pm"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
echo
|
||||||
|
|
||||||
|
echo "[*] Checking Python version (if available):"
|
||||||
|
if command -v python3 &> /dev/null; then
|
||||||
|
python3 --version
|
||||||
|
elif command -v python &> /dev/null; then
|
||||||
|
python --version
|
||||||
|
else
|
||||||
|
echo " Python not found."
|
||||||
|
fi
|
||||||
|
echo
|
||||||
|
|
||||||
|
echo "[*] Current PATH:"
|
||||||
|
echo "$PATH"
|
||||||
|
echo
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# --- Installation des dépendances ---
|
# --- Installation des dépendances ---
|
||||||
echo "--- Installation des dépendances (OpenStack Client, jq) ---"
|
echo "--- Installation des dépendances (OpenStack Client, jq) ---"
|
||||||
if command -v sudo &> /dev/null && command -v apt-get &> /dev/null; then
|
if command -v sudo &> /dev/null && command -v apt-get &> /dev/null; then
|
||||||
|
Loading…
Reference in New Issue
Block a user