Przeglądaj źródła

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

Vladimir Tomishinets 6 lat temu
rodzic
commit
a7e5cc9986
1 zmienionych plików z 7 dodań i 7 usunięć
  1. 7 7
      docker-entrypoint.sh

+ 7 - 7
docker-entrypoint.sh

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