Changeset 13426 in hybrid for branches/releng-10/nanobsd


Ignore:
Timestamp:
Oct 4, 2015, 10:08:27 PM (9 years ago)
Author:
rick
Message:

Not required when no openvpn is installed

Some customisations should be conditional.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/releng-10/nanobsd/cfg/nanobsd.wleiden

    r13424 r13426  
    210210# not practical for quick debugging and configuration.
    211211cust_openvpn_dhparam() (
    212         DHFILE=${NANO_WORLDDIR}/etc/easy-rsa-keys/dh1024.pem
    213         mkdir -p `dirname $DHFILE`
    214         openssl dhparam -out $DHFILE 1024
     212        if [ -r ${NANO_CONF_DIR}/usr/local/bin/openvpn ]; then
     213                DHFILE=${NANO_WORLDDIR}/etc/easy-rsa-keys/dh1024.pem
     214                mkdir -p `dirname $DHFILE`
     215                openssl dhparam -out $DHFILE 1024
     216        fi
    215217)
    216218
Note: See TracChangeset for help on using the changeset viewer.