mirror of
https://github.com/elAgala/server-initializer.git
synced 2026-02-14 05:06:18 +00:00
Refactor | Add Utils, Firewall & Monitoring
This commit is contained in:
42
install.sh
Normal file
42
install.sh
Normal file
@@ -0,0 +1,42 @@
|
||||
#!/bin/bash
|
||||
|
||||
source ./user/create_user.sh
|
||||
source ./user/ssh_config.sh
|
||||
source ./web/install_nginx.sh
|
||||
source ./web/setup_ufw.sh
|
||||
source ./docker/install_docker.sh
|
||||
source ./utils/install_vim.sh
|
||||
source ./utils/install_zsh.sh
|
||||
source ./monitoring/install_prometehus.sh
|
||||
|
||||
chmod +x ./user/create_user.sh
|
||||
chmod +x ./user/ssh_config.sh
|
||||
chmod +x ./web/install_nginx.sh
|
||||
chmod +x ./web/setup_ufw.sh
|
||||
chmod +x ./docker/install_docker.sh
|
||||
chmod +x ./utils/install_vim.sh
|
||||
chmod +x ./utils/install_zsh.sh
|
||||
chmod +x ./monitoring/install_prometehus.sh
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
echo "Usage: $0 <username>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Docker
|
||||
install_docker
|
||||
|
||||
# Web
|
||||
install_nginx
|
||||
setup_ufw
|
||||
|
||||
# User
|
||||
create_user $1
|
||||
config_ssh $1
|
||||
|
||||
# Utils
|
||||
install_vim
|
||||
install_zsh $1
|
||||
|
||||
# Monitoring
|
||||
install_prometehus $1
|
||||
Reference in New Issue
Block a user