1
0
mirror of synced 2024-11-25 14:26:09 +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 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

View File

@ -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