bug
This commit is contained in:
parent
ffe4d0181c
commit
7470268a53
|
|
@ -17,5 +17,6 @@ chsh -s /bin/bash $username
|
||||||
echo "$username:$password" | chpasswd
|
echo "$username:$password" | chpasswd
|
||||||
|
|
||||||
usermod -aG sudo $username
|
usermod -aG sudo $username
|
||||||
|
usermod -aG docker $username
|
||||||
|
|
||||||
echo -e "${PURPLE}${BOLD}User '$username' created with password successfully.${RESET}"
|
echo -e "${PURPLE}${BOLD}User '$username' created with password successfully.${RESET}"
|
||||||
|
|
@ -9,26 +9,26 @@ fi
|
||||||
echo -e "${PURPLE}${BOLD}Create a user ? (y/N) ${RESET}"
|
echo -e "${PURPLE}${BOLD}Create a user ? (y/N) ${RESET}"
|
||||||
read answer
|
read answer
|
||||||
if [[ "$answer" == "y" ]]; then
|
if [[ "$answer" == "y" ]]; then
|
||||||
. first-install/create_user.sh
|
. bin/first-install/create_user.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# SSH
|
# SSH
|
||||||
echo -e "${PURPLE}${BOLD}Setup SSH ? (y/N) ${RESET}"
|
echo -e "${PURPLE}${BOLD}Setup SSH ? (y/N) ${RESET}"
|
||||||
read answer
|
read answer
|
||||||
if [[ "$answer" == "y" ]]; then
|
if [[ "$answer" == "y" ]]; then
|
||||||
. first-install/setup_ssh.sh
|
. bin/first-install/setup_ssh.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# SWAP
|
# SWAP
|
||||||
echo -e "${PURPLE}${BOLD}Add SWAP ? (y/N) ${RESET}"
|
echo -e "${PURPLE}${BOLD}Add SWAP ? (y/N) ${RESET}"
|
||||||
read answer
|
read answer
|
||||||
if [[ "$answer" == "y" ]]; then
|
if [[ "$answer" == "y" ]]; then
|
||||||
. first-install/add_swap.sh
|
. bin/first-install/add_swap.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# FIREWALL AND FAIL2BAN
|
# FIREWALL AND FAIL2BAN
|
||||||
echo -e "${PURPLE}${BOLD}Setup Firewall and Fail2ban ? (y/N) ${RESET}"
|
echo -e "${PURPLE}${BOLD}Setup Firewall and Fail2ban ? (y/N) ${RESET}"
|
||||||
read answer
|
read answer
|
||||||
if [[ "$answer" == "y" ]]; then
|
if [[ "$answer" == "y" ]]; then
|
||||||
. first-install/setup_firewall_fail2ban.sh
|
. bin/first-install/setup_firewall_fail2ban.sh
|
||||||
fi
|
fi
|
||||||
Loading…
Reference in New Issue