-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall_scripts.sh
More file actions
executable file
·30 lines (23 loc) · 1.14 KB
/
Copy pathinstall_scripts.sh
File metadata and controls
executable file
·30 lines (23 loc) · 1.14 KB
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
# Install scripts locally
# Exit on error
set -e
INSTALL_DIR=~
SCRIPT_BIN=$INSTALL_DIR/local/bin
mkdir -p $SCRIPT_BIN
curl -fLo $SCRIPT_BIN/tunnels https://raw.githubusercontent.com/jvrsgsty/linux-env/master/scripts/tunnels
curl -fLo $SCRIPT_BIN/connect https://raw.githubusercontent.com/jvrsgsty/linux-env/master/scripts/connect
curl -fLo $SCRIPT_BIN/vpn_commands.txt https://raw.githubusercontent.com/jvrsgsty/linux-env/master/scripts/vpn_commands.txt
curl -fLo $SCRIPT_BIN/disconnect https://raw.githubusercontent.com/jvrsgsty/linux-env/master/scripts/disconnect
curl -fLo $SCRIPT_BIN/vpnstatus https://raw.githubusercontent.com/jvrsgsty/linux-env/master/scripts/vpnstatus
chmod u+x $SCRIPT_BIN/tunnels
chmod u+x $SCRIPT_BIN/connect
chmod u+x $SCRIPT_BIN/disconnect
chmod u+x $SCRIPT_BIN/vpnstatus
echo ""
echo "DONE installing scripts"
echo "The VPN and ssh tunneling scripts (connect, disconnect, vpnstatus, tunnels) are now available at $SCRIPT_BIN"
echo "You can optionally add $SCRIPT_BIN to your PATH."
echo "You can use the following command to add this to your .bashrc"
echo ""
echo 'echo "export PATH='$SCRIPT_BIN':\$PATH" >> ~/.bashrc'
echo ""