git cert script added
This commit is contained in:
父節點
f09d885e7c
當前提交
8eca043a62
8
gitcert
Executable file
8
gitcert
Executable file
@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
if [[ $UID != 0 ]]; then
|
||||
sudo $0
|
||||
else
|
||||
cp /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt.orig-git
|
||||
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
|
||||
fi
|
載入中…
x
新增問題並參考
Block a user