瀏覽代碼

git cert script added

84582af
Dirk Alders 2 年之前
父節點
當前提交
8eca043a62
共有 1 個檔案被更改,包括 8 行新增0 行删除
  1. 8
    0
      gitcert

+ 8
- 0
gitcert 查看文件

@@ -0,0 +1,8 @@
1
+#!/bin/bash
2
+#
3
+if [[ $UID != 0 ]]; then
4
+    sudo $0
5
+else
6
+    cp /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt.orig-git
7
+    echo $(echo -n | openssl s_client -showcerts -connect mount-mockery.de:443 2>/dev/null  | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p') >> /etc/ssl/certs/ca-certificates.crt
8
+fi

Loading…
取消
儲存