-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
50 lines (37 loc) · 1.21 KB
/
setup.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
#!/bin/bash
set -e
show_help () {
echo "---Usage: sudo bash $filename"
}
check_permissions () {
if [[ $EUID -ne 0 ]]; then
echo "---Run with root privileges"
show_help
exit
fi
}
setup () {
echo "---Setup started..."
# docker-cleanup
sudo wget -q -P /usr/local/bin/ https://raw.githubusercontent.com/thanospan/scripts/main/docker-cleanup/docker-cleanup.sh
sudo chmod +x /usr/local/bin/docker-cleanup.sh
# laptop-lid
sudo wget -q -P /usr/local/bin/ https://raw.githubusercontent.com/thanospan/scripts/main/laptop-lid/laptop-lid.sh
sudo chmod +x /usr/local/bin/laptop-lid.sh
# night-light
sudo wget -q -P /usr/local/bin/ https://raw.githubusercontent.com/thanospan/scripts/main/night-light/night-light.sh
sudo chmod +x /usr/local/bin/night-light.sh
# upatras-vpn
sudo wget -q -P /usr/local/bin/ https://raw.githubusercontent.com/thanospan/scripts/main/upatras-vpn/upatras-vpn.sh
sudo chmod +x /usr/local/bin/upatras-vpn.sh
# vga2hdmi
sudo wget -q -P /usr/local/bin/ https://raw.githubusercontent.com/thanospan/scripts/main/vga2hdmi/vga2hdmi.sh
sudo chmod +x /usr/local/bin/vga2hdmi.sh
echo "---Done!"
}
main () {
filename=$(basename $0)
check_permissions
setup
}
main