-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpython.sh
50 lines (49 loc) · 2.66 KB
/
python.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
#!/bin/bash
sleep 1
clear
echo "############################################################################"
echo "# Python 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 Python #"
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 "# Python Installation (apt-get install python3.8 -y) #"
echo "############################################################################"
apt-get install python3.8 -y
wait -n
echo "############################################################################"
echo "# Installed Python #"
echo "############################################################################"