new script to install prerequisites on common Linux distribution

This commit is contained in:
Lukas Greve
2025-07-01 21:28:33 +02:00
parent 46bbe1d5e9
commit cf3ff84a6d
2 changed files with 44 additions and 0 deletions

27
deploy.sh Executable file
View File

@@ -0,0 +1,27 @@
#!/bin/bash
# Function to execute a script
execute_script() {
local script_to_execute="$1"
echo "Executing: $script_to_execute"
"$script_to_execute" || {
echo "Script failed: $script_to_execute"
return 1 # Indicate failure
}
return 0 # Indicate success
}
# Array of scripts
scripts=(
"./scripts/install-prerequisites-on-linux.sh"
"./scripts/core-count.sh"
"./scripts/system-memory.sh"
"./scripts/deploy-distro.sh"
)
# Iterate through the scripts and execute them
for script in "${scripts[@]}"; do
execute_script "$script"
done
echo "All scripts executed."