forked from tux3d0/HTB_Quick_VPN
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
31 lines (23 loc) · 1.28 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
#!/bin/bash
if (( $EUID != 0 )); then
echo "Please run as root"
exit
fi
echo "
██╗ ██╗███████╗██████╗ ███╗ ███╗███████╗███████╗
██║ ██║██╔════╝██╔══██╗████╗ ████║██╔════╝██╔════╝
███████║█████╗ ██████╔╝██╔████╔██║█████╗ ███████╗
██╔══██║██╔══╝ ██╔══██╗██║╚██╔╝██║██╔══╝ ╚════██║
██║ ██║███████╗██║ ██║██║ ╚═╝ ██║███████╗███████║
╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚══════╝
Install Script
"
echo "Making Directory"
sudo mkdir /opt/Hermes
echo "Adding Permissions"
chmod +x /opt/Hermes/Hermes.sh
echo "Adding shortcut as 'hermes'"
echo "alias hermes='sudo bash /opt/Hermes/Hermes.sh'" >> ~/.zshrc
echo "alias hermes='sudo bash /opt/Hermes/Hermes.sh'" >> ~/.bashrc
echo "Done!"
exit