#!/usr/bin/env bash set -e if [[ $EUID -ne 0 ]]; then echo "Please run as root" exit 1 fi echo "=================================" echo " Server Bootstrap CLI" echo "=================================" PS3="Select an option: " options=( "Run FULL setup" "User setup" "Security setup" "System installer" "Install Docker" "Exit" ) cd scripts select opt in "${options[@]}" do case $opt in "Run FULL setup") ./installer.sh ./security.sh ./user.sh ./docker/install.sh break ;; "User setup") ./user.sh break ;; "Security setup") ./security.sh break ;; "System installer") ./installer.sh break ;; "Install Docker") ./docker/install.sh break ;; "Exit") exit 0 ;; *) echo "Invalid option" ;; esac done