Files
tool__scripts/backup-and-restore/machine-setup/machine-setup.sh
2026-07-09 01:05:56 +02:00

35 lines
590 B
Bash

#!/bin/bash
set -euo pipefail
echo
echo
echo "[SCRIPT START] machine-setup"
echo
if [ -z "$1" ]; then
echo "Please provide a machine name as an argument. Usage: $0 <MACHINE_NAME>"
exit 1
fi
MACHINE_NAME=$1
path_to_fetch_script="/usr/local/lib/fetch_and_execute.sh"
source "$path_to_fetch_script"
case "$MACHINE_NAME" in
"generic-dev-machine")
fetch_and_execute "script/vm-setup/machine/generic-dev-machine/restore/execute.sh"
;;
*)
echo "Unknown machine name. Please provide a valid one."
exit 2
;;
esac
echo
echo "[SCRIPT DONE] machine-setup"
echo
echo