-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathapache.sh
59 lines (58 loc) · 3.2 KB
/
apache.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
53
54
55
56
57
58
#!/bin/bash
sleep 1
clear
echo "############################################################################"
echo "# Apache Installer #"
echo "# by Nico L. #"
echo "# https://github.com/ipexadev/scripts #"
echo "# Last Update: 27.06.2022 #"
echo "############################################################################"
sleep 3
clear
echo "############################################################################"
echo "# Checking for Root #"
echo "############################################################################"
if (( $EUID != 0 )); then
echo "############################################################################"
echo "# Please run as root #"
echo "############################################################################"
exit
fi
sleep 1
clear
echo "############################################################################"
echo "# Checked for Root #"
echo "############################################################################"
sleep 2
clear
echo "############################################################################"
echo "# Installing Apache #"
echo "############################################################################"
sleep 2
echo "############################################################################"
echo "# Server Update (apt update -y) #"
echo "############################################################################"
apt update -y
wait -n
echo "############################################################################"
echo "# Server Upgrade (apt upgrade -y) #"
echo "############################################################################"
apt upgrade -y
wait -n
echo "############################################################################"
echo "# Apache Installation (apt install apache2 -y) #"
echo "############################################################################"
apt install apache2 -y
wait -n
echo "############################################################################"
echo "# Enabling Apache (systemctl enable apache2) #"
echo "############################################################################"
systemctl enable apache2
echo "############################################################################"
echo "# Checking Apache Stauts (systemctl status apache2) #"
echo "############################################################################"
systemctl status apache2
wait -n
echo "############################################################################"
echo "# Installed Apache #"
echo "############################################################################"