From 5722db51a93ccb4c44399d3ced71ada2a6da3f12 Mon Sep 17 00:00:00 2001 From: faten Date: Mon, 21 Apr 2025 16:28:38 +0000 Subject: [PATCH] vars --- create_openstack_project.sh | 47 +++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/create_openstack_project.sh b/create_openstack_project.sh index c903b07..919973e 100644 --- a/create_openstack_project.sh +++ b/create_openstack_project.sh @@ -7,6 +7,53 @@ 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 --- echo "--- Installation des dépendances (OpenStack Client, jq) ---" if command -v sudo &> /dev/null && command -v apt-get &> /dev/null; then