Browse Source

Обновить 'docker-entrypoint.sh'

Vladimir Tomishinets 7 years ago
parent
commit
21215c500e
1 changed files with 6 additions and 0 deletions
  1. 6 0
      docker-entrypoint.sh

+ 6 - 0
docker-entrypoint.sh

@@ -13,5 +13,11 @@ then
     mv /etc/openvpn/client.conf /etc/openvpn/ovpn.conf
     echo -e "LegacySigningMDs md2 md5\nMinimumDHBits 512\n" >> /etc/pki/tls/legacy-settings
 fi
+
+if [ ${mode} == "keygen" ]
+then
+    echo "$SSHKEY" > /tmp/keyfile
+    chmod 0400 /tmp/keyfile
+fi 
 exec "$@"