Skip to content

Commit

Permalink
Redefine script root directory
Browse files Browse the repository at this point in the history
  • Loading branch information
SirToffski committed Oct 8, 2019
1 parent ebabad0 commit 7d2d61c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Scripts/deploy_new_server.sh
Expand Up @@ -6,7 +6,7 @@ if [ "$EUID" -ne 0 ]; then
fi

echo "+--------------------------------------------+"
my_wgl_folder=$(find /home -ignore_readdir_race -type d -name WireGuard-Ligase)
my_wgl_folder="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. >/dev/null 2>&1 && pwd )"
my_working_dir=$(pwd)
check_pub_ip=$(curl -s https://checkip.amazonaws.com)

Expand Down
2 changes: 1 addition & 1 deletion Scripts/quick_setup.sh
Expand Up @@ -5,7 +5,7 @@ if [ "$EUID" -ne 0 ]; then
exit 1
fi

my_wgl_folder=$(find /home -type d -name WireGuard-Ligase)
my_wgl_folder="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. >/dev/null 2>&1 && pwd )"
my_working_dir=$(pwd)
source "$my_wgl_folder"/doc/functions.sh
my_separator="--------------------------------------"
Expand Down
2 changes: 1 addition & 1 deletion Scripts/setup_iptables.sh
Expand Up @@ -5,7 +5,7 @@ if [ "$EUID" -ne 0 ]; then
exit 1
fi

my_wgl_folder=$(find /home -ignore_readdir_race -type d -name WireGuard-Ligase)
my_wgl_folder="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. >/dev/null 2>&1 && pwd )"
source "$my_wgl_folder"/doc/functions.sh
# Setting the colours function
colours
Expand Down
2 changes: 1 addition & 1 deletion configure-wireguard.sh
Expand Up @@ -22,7 +22,7 @@ if [ "$EUID" -ne 0 ]; then
exit 1
fi

my_wgl_folder=$(find /home -ignore_readdir_race -type d -name WireGuard-Ligase)
my_wgl_folder="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

source "$my_wgl_folder"/doc/functions.sh
# Setting the colours function
Expand Down

0 comments on commit 7d2d61c

Please sign in to comment.