diff options
-rwxr-xr-x | ssh-co-dotfiles | 133 |
1 files changed, 66 insertions, 67 deletions
diff --git a/ssh-co-dotfiles b/ssh-co-dotfiles index 1f25160..5e89ed6 100755 --- a/ssh-co-dotfiles +++ b/ssh-co-dotfiles @@ -14,85 +14,84 @@ h="$1" echo ssh "$h" 'if ! [ -e .dotfiles ] || ( [ -e .dotfiles/.svn ] && mv .dotfiles .dotfiles-svn ); then rm -rf .dotfiles.new && - cat > .www.palfrader.org.crt << EOF && + cat > .git2.palfrader.org.crt << EOF && -----BEGIN CERTIFICATE----- -MIIFejCCBGKgAwIBAgIQToSxUkJRuXHq6GShiZ6UmTANBgkqhkiG9w0BAQsFADBf -MQswCQYDVQQGEwJGUjEOMAwGA1UECBMFUGFyaXMxDjAMBgNVBAcTBVBhcmlzMQ4w -DAYDVQQKEwVHYW5kaTEgMB4GA1UEAxMXR2FuZGkgU3RhbmRhcmQgU1NMIENBIDIw -HhcNMTQwNjIzMDAwMDAwWhcNMTYwNjIzMjM1OTU5WjBcMSEwHwYDVQQLExhEb21h -aW4gQ29udHJvbCBWYWxpZGF0ZWQxGzAZBgNVBAsTEkdhbmRpIFN0YW5kYXJkIFNT -TDEaMBgGA1UEAxMRd3d3LnBhbGZyYWRlci5vcmcwggGiMA0GCSqGSIb3DQEBAQUA -A4IBjwAwggGKAoIBgQC8oPtzgAShwDQxpqeuA/mdiBd4mwA+vCsvrQD058zO7ttQ -O+XKsUZ6Bv6BSitMLJiGrn45fcwkn1meXDgYf65EyFw6LJXT7EFs6axtqkvpV4fl -VI7oWwG720l2fThHO/Z7iMNuorPxJcM39zzt5GtEHKMq1dP+YWn6OF0mi7cbGu95 -0PT2ueuO1hF0TAWCK5LuRf3vwKqbhBL0EMwcMqpG7h5WxcxdX3tRIlwG8OoDGw/u -1v4WCyU1KY4qGmtWvuW5+jzHR5gkIgYJzhBcwpQPqzGrHm7c8cjBV5S6b8XvyGMQ -0SrEe6ex8kip/Wuh8aAg5iXK3+EJIadAGvGoB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HSMEGDAWgBSpwugNzLpR5fwG2pBDfDjqwqMC7jAMBgNVHRMEBTADAQH/MA0G +CSqGSIb3DQEBCwUAA4ICAQCwz7kpFE9hwrp17Za5j1ndcpiwShlQZ0sj28NTQp6w +KOPhDnB4sQYdKwm8pc//tMOiKn0UDDQzEkWCOdWytezkbYOQ3BoRuYOovWZox2Qx +PFvnjEs0QRt09XFRCpZDyKZY8nq2CRogNLzSfezeJxy7N0KH2pdKOq9XnB7uWta6 +Yn0iSLWsAF7EM00xHavAdsHEN5Y6F01o18U7+c3nf5mf4ZXKqMHrLksvFIxqNr1s +bmpt3xkYqvY9f2PmcVCEO1l/SDXrDfFuB7MOs7K63NVMunnePvFWweyOi3yS9f2t +AsDzp63fNXOYzM7CbQBo2SDuTIUXFNeIEk7csf1KY2lw91McGG+WG79GgKq63pow +iP8pN1PkzovkaJL+xcjEHnEc3PDJAz3zp3sImK13Mu/aCSOeWio6G899rs8qfwFT +Kc/VzHcX2b2BahM4qu6sTA71P2R1Ek/Sv/XP4UiWCqh+2jd7NHqbmp9QERIJnN0n +4PS3EeGIRrRxZnewG/HslSSk12yZ1r9AUlpM8PZbPd9cUYR65X1V0cHyOfskxGhX +GNkMrry7av7b5DH4cCyKICLADrcp8avKRqOz3sl1ZluqpRjxSngK4M50v5ArVJJk +sXmB2EZXwPrgijgIFWpRTarioptI9NxNF4RtpAjH1dI1VtP9kybvYKSP+z3cniFL +4Q== -----END CERTIFICATE----- EOF - git -c http.sslCAinfo="$HOME"/.www.palfrader.org.crt clone https://www.palfrader.org/git/conf/dotfiles.git .dotfiles.new && - rm -f .www.palfrader.org.crt && + git -c http.sslCAinfo="$HOME"/.git2.palfrader.org.crt -c http.sslCAPath="$HOME"/.nonexistent clone https://git2.palfrader.org/git/conf/dotfiles.git .dotfiles.new && + rm -f .git2.palfrader.org.crt && mv .dotfiles.new .dotfiles && cd .dotfiles && - git config --local --add http.sslCAinfo "$HOME"/.dotfiles/.certs/www.palfrader.org.crt && + git config --local --add http.sslCAinfo "$HOME"/.dotfiles/.certs/git2.palfrader.org.crt && + git config --local --add http.sslCAPath "$HOME"/.nonexistent && ./Link-Them && echo "All done"; elif [ -e .dotfiles/.git ]; then - cat > .www.palfrader.org.crt << EOF && + cat > .git2.palfrader.org.crt << EOF && -----BEGIN CERTIFICATE----- -MIIFejCCBGKgAwIBAgIQToSxUkJRuXHq6GShiZ6UmTANBgkqhkiG9w0BAQsFADBf -MQswCQYDVQQGEwJGUjEOMAwGA1UECBMFUGFyaXMxDjAMBgNVBAcTBVBhcmlzMQ4w -DAYDVQQKEwVHYW5kaTEgMB4GA1UEAxMXR2FuZGkgU3RhbmRhcmQgU1NMIENBIDIw -HhcNMTQwNjIzMDAwMDAwWhcNMTYwNjIzMjM1OTU5WjBcMSEwHwYDVQQLExhEb21h -aW4gQ29udHJvbCBWYWxpZGF0ZWQxGzAZBgNVBAsTEkdhbmRpIFN0YW5kYXJkIFNT -TDEaMBgGA1UEAxMRd3d3LnBhbGZyYWRlci5vcmcwggGiMA0GCSqGSIb3DQEBAQUA -A4IBjwAwggGKAoIBgQC8oPtzgAShwDQxpqeuA/mdiBd4mwA+vCsvrQD058zO7ttQ -O+XKsUZ6Bv6BSitMLJiGrn45fcwkn1meXDgYf65EyFw6LJXT7EFs6axtqkvpV4fl -VI7oWwG720l2fThHO/Z7iMNuorPxJcM39zzt5GtEHKMq1dP+YWn6OF0mi7cbGu95 -0PT2ueuO1hF0TAWCK5LuRf3vwKqbhBL0EMwcMqpG7h5WxcxdX3tRIlwG8OoDGw/u -1v4WCyU1KY4qGmtWvuW5+jzHR5gkIgYJzhBcwpQPqzGrHm7c8cjBV5S6b8XvyGMQ -0SrEe6ex8kip/Wuh8aAg5iXK3+EJIadAGvGoBxZcO6hiQNoUDRjw8qbq813sPpks -kosGvQsxbi+0Rqp3Xw67JaKAXZdnbDY9Gj3XqMrISXeKvFTUKsSx1B6qu71asI8T -bLDYN1O/n9L7c8jH/XpF9uhbKkv2oP6ld05LAInNhT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B4sQYdKwm8pc//tMOiKn0UDDQzEkWCOdWytezkbYOQ3BoRuYOovWZox2Qx +PFvnjEs0QRt09XFRCpZDyKZY8nq2CRogNLzSfezeJxy7N0KH2pdKOq9XnB7uWta6 +Yn0iSLWsAF7EM00xHavAdsHEN5Y6F01o18U7+c3nf5mf4ZXKqMHrLksvFIxqNr1s +bmpt3xkYqvY9f2PmcVCEO1l/SDXrDfFuB7MOs7K63NVMunnePvFWweyOi3yS9f2t +AsDzp63fNXOYzM7CbQBo2SDuTIUXFNeIEk7csf1KY2lw91McGG+WG79GgKq63pow +iP8pN1PkzovkaJL+xcjEHnEc3PDJAz3zp3sImK13Mu/aCSOeWio6G899rs8qfwFT +Kc/VzHcX2b2BahM4qu6sTA71P2R1Ek/Sv/XP4UiWCqh+2jd7NHqbmp9QERIJnN0n +4PS3EeGIRrRxZnewG/HslSSk12yZ1r9AUlpM8PZbPd9cUYR65X1V0cHyOfskxGhX +GNkMrry7av7b5DH4cCyKICLADrcp8avKRqOz3sl1ZluqpRjxSngK4M50v5ArVJJk +sXmB2EZXwPrgijgIFWpRTarioptI9NxNF4RtpAjH1dI1VtP9kybvYKSP+z3cniFL +4Q== -----END CERTIFICATE----- EOF cd .dotfiles && - git -c http.sslCAinfo="$HOME"/.www.palfrader.org.crt pull && - rm -f .www.palfrader.org.crt && + git -c http.sslCAinfo="$HOME"/.git2.palfrader.org.crt -c http.sslCAPath="$HOME"/.nonexistent pull && + git config --local --add http.sslCAinfo "$HOME"/.dotfiles/.certs/git2.palfrader.org.crt && + git config --local --add http.sslCAPath "$HOME"/.nonexistent && + rm -f .git2.palfrader.org.crt && echo "Pulled with current cert."; fi ' |