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

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:
hwdsl2 2016-01-21 02:12:30 -06:00
parent 58a46bfe95
commit f47d78b0f1
2 changed files with 14 additions and 12 deletions

View File

@ -24,13 +24,14 @@ if [ "$(uname)" = "Darwin" ]; then
fi
# Please define your own values for these variables
# Escape *all* non-alphanumeric characters with a backslash (3 backslashes for \ and ").
# Examples: \ --> \\\\, " --> \\\", ' --> \', $ --> \$, ` --> \`, [space] --> \[space]
IPSEC_PSK=your_very_secure_key
VPN_USER=your_username
VPN_PASSWORD=your_very_secure_password
# - All values MUST be quoted using 'single quotes'
# - DO NOT use these characters inside values: \ " '
# 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
if [ "$(lsb_release -si 2>/dev/null)" != "Ubuntu" ] && [ "$(lsb_release -si 2>/dev/null)" != "Debian" ]; then

View File

@ -23,13 +23,14 @@ if [ "$(uname)" = "Darwin" ]; then
fi
# Please define your own values for these variables
# Escape *all* non-alphanumeric characters with a backslash (3 backslashes for \ and ").
# Examples: \ --> \\\\, " --> \\\", ' --> \', $ --> \$, ` --> \`, [space] --> \[space]
IPSEC_PSK=your_very_secure_key
VPN_USER=your_username
VPN_PASSWORD=your_very_secure_password
# - All values MUST be quoted using 'single quotes'
# - DO NOT use these characters inside values: \ " '
# 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
if [ ! -f /etc/redhat-release ]; then