瀏覽代碼

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

Vladimir Tomishinets 6 年之前
父節點
當前提交
a7e5cc9986
共有 1 個文件被更改,包括 7 次插入7 次删除
  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