This commit is contained in:
Valentin 2024-10-23 01:53:26 +02:00
parent ffe4d0181c
commit 7470268a53
2 changed files with 5 additions and 4 deletions

View File

@ -17,5 +17,6 @@ chsh -s /bin/bash $username
echo "$username:$password" | chpasswd
usermod -aG sudo $username
usermod -aG docker $username
echo -e "${PURPLE}${BOLD}User '$username' created with password successfully.${RESET}"

View File

@ -9,26 +9,26 @@ fi
echo -e "${PURPLE}${BOLD}Create a user ? (y/N) ${RESET}"
read answer
if [[ "$answer" == "y" ]]; then
. first-install/create_user.sh
. bin/first-install/create_user.sh
fi
# SSH
echo -e "${PURPLE}${BOLD}Setup SSH ? (y/N) ${RESET}"
read answer
if [[ "$answer" == "y" ]]; then
. first-install/setup_ssh.sh
. bin/first-install/setup_ssh.sh
fi
# SWAP
echo -e "${PURPLE}${BOLD}Add SWAP ? (y/N) ${RESET}"
read answer
if [[ "$answer" == "y" ]]; then
. first-install/add_swap.sh
. bin/first-install/add_swap.sh
fi
# FIREWALL AND FAIL2BAN
echo -e "${PURPLE}${BOLD}Setup Firewall and Fail2ban ? (y/N) ${RESET}"
read answer
if [[ "$answer" == "y" ]]; then
. first-install/setup_firewall_fail2ban.sh
. bin/first-install/setup_firewall_fail2ban.sh
fi