mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Merge pull request #1004 from holta/openvpn-handle2
openvpn_handle variable explained (part 2)
This commit is contained in:
commit
d24f000ca1
1 changed files with 9 additions and 1 deletions
|
@ -8,7 +8,15 @@ if [ -f /etc/iiab/openvpn_handle ]; then
|
|||
# Option #1
|
||||
HANDLE=`cat /etc/iiab/openvpn_handle`
|
||||
# Option #2: UUID is later used, if openvpn_handle is not set
|
||||
# Sourcing a variable from ~4 different places is a recipe for total confusion (or worse!)
|
||||
|
||||
# Sourcing a variable from ~4 different places is a recipe for total confusion
|
||||
# (or worse!) Far better to make variable openvpn_handle and file
|
||||
# /etc/iiab/openvpn_handle "obligatory" (EMPTY STRING "" IS TOLERATED, in which
|
||||
# case OpenVPN server should use /etc/iiab/uuid in lieu of the handle).
|
||||
|
||||
# CLARIF: "systemctl restart openvpn@xscenet" still runs even if the above is
|
||||
# defied. e.g. if an implementer deletes /etc/iiab/openvpn_handle by accident.
|
||||
|
||||
#else
|
||||
# # Option #3: Dangerous to invoke hypothetical variables :(
|
||||
# source /etc/iiab/iiab.env
|
||||
|
|
Loading…
Add table
Reference in a new issue