Sfoglia il codice sorgente

Merge pull request #377 from ksanislo/dev

Allow a pre-existing /config/openvpn-credentials.txt file.
master
Kristian Haugene 6 anni fa
parent
commit
165c187525
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 5 aggiunte e 2 eliminazioni
  1. 5
    2
      openvpn/start.sh

+ 5
- 2
openvpn/start.sh Vedi File

@@ -27,8 +27,11 @@ fi

# add OpenVPN user/pass
if [ "${OPENVPN_USERNAME}" = "**None**" ] || [ "${OPENVPN_PASSWORD}" = "**None**" ] ; then
echo "OpenVPN credentials not set. Exiting."
exit 1
if [ ! -f /config/openvpn-credentials.txt ] ; then
echo "OpenVPN credentials not set. Exiting."
exit 1
fi
echo "Found existing OPENVPN credentials..."
else
echo "Setting OPENVPN credentials..."
mkdir -p /config

Loading…
Annulla
Salva