Commit a18c1cbd7f47dd0ac6e3dd6f7b4e5768e87468b0

Thomas de Grivel 2021-11-30T16:54:13

mv

diff --git a/bin/update_etc_git_auth b/bin/update_etc_git_auth
index 6b97be6..b6f49dd 100755
--- a/bin/update_etc_git_auth
+++ b/bin/update_etc_git_auth
@@ -1,4 +1,5 @@
 #!/bin/sh
 set -e
 cd /etc/git/
-curl > auth.conf https://git.kmx.io/_etc/git/auth.conf
+curl > auth.conf.1 https://git.kmx.io/_etc/git/auth.conf
+mv auth.conf.1 auth.conf
diff --git a/bin/update_git_ssh_authorized_keys b/bin/update_git_ssh_authorized_keys
index f4c76a9..46a62fd 100755
--- a/bin/update_git_ssh_authorized_keys
+++ b/bin/update_git_ssh_authorized_keys
@@ -1,4 +1,5 @@
 #!/bin/sh
 set -e
 cd /home/git/.ssh/
-curl > authorized_keys https://git.kmx.io/_etc/ssh/authorized_keys
+curl > authorized_keys.1 https://git.kmx.io/_etc/ssh/authorized_keys
+mv authorized_keys.1 authorized_keys