new script to install prerequisites on common Linux distribution
This commit is contained in:
27
deploy.sh
Executable file
27
deploy.sh
Executable 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."
|
Reference in New Issue
Block a user