basic tools
This commit is contained in:
parent
1c7ed5c2b7
commit
d0aa341ddf
@ -120,16 +120,20 @@ install_nodejs() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Function to setup UFW firewall
|
# Function to setup basic system tools and security
|
||||||
setup_ufw() {
|
setup_basic_system() {
|
||||||
log_info "UFW (Uncomplicated Firewall) wird installiert und konfiguriert..."
|
if get_user_confirmation "Basic tools und Firewall installieren?"; then
|
||||||
if command_exists ufw; then
|
log_info "Installiere basic tools und UFW..."
|
||||||
log_info "UFW ist bereits installiert."
|
apt install -y htop zip unzip ufw
|
||||||
else
|
|
||||||
apt install -y ufw
|
# Configure UFW
|
||||||
ufw allow ssh
|
ufw allow ssh
|
||||||
echo "y" | ufw enable
|
echo "y" | ufw enable
|
||||||
log_success "UFW wurde erfolgreich installiert und konfiguriert. SSH-Verbindungen sind erlaubt."
|
|
||||||
|
log_success "Basic tools und UFW wurden erfolgreich installiert."
|
||||||
|
log_success "SSH-Verbindungen sind erlaubt."
|
||||||
|
else
|
||||||
|
log_skip "Basic tools und UFW Installation übersprungen."
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -137,9 +141,9 @@ setup_ufw() {
|
|||||||
main() {
|
main() {
|
||||||
setup_ssh
|
setup_ssh
|
||||||
update_system
|
update_system
|
||||||
|
setup_basic_system # Replace both previous functions
|
||||||
install_docker
|
install_docker
|
||||||
install_nodejs
|
install_nodejs
|
||||||
setup_ufw
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Run main function
|
# Run main function
|
||||||
|
Loading…
x
Reference in New Issue
Block a user