-
Notifications
You must be signed in to change notification settings - Fork 1
/
install.sh
52 lines (44 loc) · 1.03 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/bash
# Check root
if [ "$(id -u)" = "0" ]; then
clear
else
clear
echo -e "\033[35;1mYou must have root access to run this script\033[0m"
exit 1
fi
clear
echo ""
echo "Installation initiated... please wait, this could take a while!"
sleep 2
./setup.sh basic
echo ""
clear
echo "Installing LEMP stack."
sleep 2
./setup.sh install
echo ""
clear
echo "Installing phpmyadmin/adminer."
sleep 2
./setup.sh dbgui
echo ""
clear
echo "Installing Let's Encrypt Certbot."
sleep 2
./setup.sh letsencrypt
echo ""
clear
echo "Optimizing AWStats, PHP, logrotate & webserver config."
sleep 2
./setup.sh optimize
## Uncomment to secure /tmp folder
#echo ""
#echo "Securing /tmp directory."
## Use tmpdd here if your server has under 256MB memory. Tmpdd will consume a 1GB disk space for /tmp
#./setup.sh tmpfs
echo ""
echo -e "\033[36;1m Installation complete! \033[0m"
echo -e "\033[35;1m Root login disabled. \033[0m"
echo -e "\033[35;1m Remember to use SUDO credentials for login or you will be locked out from your box! \033[0m"
echo ""