initial commit

This commit is contained in:
2026-03-18 03:29:25 +08:00
commit 146c2c5f35
37 changed files with 1445 additions and 0 deletions

60
run.sh Normal file
View File

@@ -0,0 +1,60 @@
#!/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