Improve the process of defining VPN variables
- Put variables inside single quotes to avoid escaping them - Make clear which characters should not be used in values Thanks for your helpful suggestions, @Langleson !
This commit is contained in:
parent
58a46bfe95
commit
f47d78b0f1
13
vpnsetup.sh
13
vpnsetup.sh
@ -24,13 +24,14 @@ if [ "$(uname)" = "Darwin" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Please define your own values for these variables
|
# Please define your own values for these variables
|
||||||
# Escape *all* non-alphanumeric characters with a backslash (3 backslashes for \ and ").
|
# - All values MUST be quoted using 'single quotes'
|
||||||
# Examples: \ --> \\\\, " --> \\\", ' --> \', $ --> \$, ` --> \`, [space] --> \[space]
|
# - DO NOT use these characters inside values: \ " '
|
||||||
IPSEC_PSK=your_very_secure_key
|
|
||||||
VPN_USER=your_username
|
|
||||||
VPN_PASSWORD=your_very_secure_password
|
|
||||||
|
|
||||||
# IMPORTANT: Be sure to read important notes at the URL below:
|
IPSEC_PSK='your_ipsec_pre_shared_key'
|
||||||
|
VPN_USER='your_vpn_username'
|
||||||
|
VPN_PASSWORD='your_very_secure_password'
|
||||||
|
|
||||||
|
# Be sure to read *important notes* at the URL below:
|
||||||
# https://github.com/hwdsl2/setup-ipsec-vpn#important-notes
|
# https://github.com/hwdsl2/setup-ipsec-vpn#important-notes
|
||||||
|
|
||||||
if [ "$(lsb_release -si 2>/dev/null)" != "Ubuntu" ] && [ "$(lsb_release -si 2>/dev/null)" != "Debian" ]; then
|
if [ "$(lsb_release -si 2>/dev/null)" != "Ubuntu" ] && [ "$(lsb_release -si 2>/dev/null)" != "Debian" ]; then
|
||||||
|
@ -23,13 +23,14 @@ if [ "$(uname)" = "Darwin" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Please define your own values for these variables
|
# Please define your own values for these variables
|
||||||
# Escape *all* non-alphanumeric characters with a backslash (3 backslashes for \ and ").
|
# - All values MUST be quoted using 'single quotes'
|
||||||
# Examples: \ --> \\\\, " --> \\\", ' --> \', $ --> \$, ` --> \`, [space] --> \[space]
|
# - DO NOT use these characters inside values: \ " '
|
||||||
IPSEC_PSK=your_very_secure_key
|
|
||||||
VPN_USER=your_username
|
|
||||||
VPN_PASSWORD=your_very_secure_password
|
|
||||||
|
|
||||||
# IMPORTANT: Be sure to read important notes at the URL below:
|
IPSEC_PSK='your_ipsec_pre_shared_key'
|
||||||
|
VPN_USER='your_vpn_username'
|
||||||
|
VPN_PASSWORD='your_very_secure_password'
|
||||||
|
|
||||||
|
# Be sure to read *important notes* at the URL below:
|
||||||
# https://github.com/hwdsl2/setup-ipsec-vpn#important-notes
|
# https://github.com/hwdsl2/setup-ipsec-vpn#important-notes
|
||||||
|
|
||||||
if [ ! -f /etc/redhat-release ]; then
|
if [ ! -f /etc/redhat-release ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user