1
0
mirror of synced 2024-11-21 20:46:10 +03:00

Set PATH to avoid issues on some systems

Reference: #19
This commit is contained in:
hwdsl2 2016-05-11 16:36:07 -05:00
parent a166285504
commit 81a731eb5d
4 changed files with 8 additions and 0 deletions

View File

@ -15,6 +15,8 @@ SWAN_VER=3.17
### Do not edit below this line
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
os_type="$(lsb_release -si 2>/dev/null)"
if [ "$os_type" != "Ubuntu" ] && [ "$os_type" != "Debian" ]; then
echo "This script only supports Ubuntu or Debian systems."

View File

@ -15,6 +15,8 @@ SWAN_VER=3.17
### Do not edit below this line
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
if [ ! -f /etc/redhat-release ]; then
echo "This script only supports CentOS or RHEL systems."
exit 1

View File

@ -30,6 +30,8 @@ VPN_PASSWORD='your_very_secure_password'
# ------------------------------------------------------------
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
if [ "$(uname)" = "Darwin" ]; then
echo 'DO NOT run this script on your Mac! It should only be used on a server.'
exit 1

View File

@ -30,6 +30,8 @@ VPN_PASSWORD='your_very_secure_password'
# ------------------------------------------------------------
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
if [ "$(uname)" = "Darwin" ]; then
echo 'DO NOT run this script on your Mac! It should only be used on a server.'
exit 1