From b55600c166f0c24361ebd94e3158e323b2703e30 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Mon, 27 Feb 2023 14:59:54 +0100 Subject: [PATCH] fix: prevent curl failure on unexistent file This file doesn't seem to have ever existed. We keep the code as it is quick to set it up again if needed. --- bin/myc-install | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/bin/myc-install b/bin/myc-install index 6af0f59..c950fd2 100755 --- a/bin/myc-install +++ b/bin/myc-install @@ -84,15 +84,15 @@ fi export PGHOST PGUSER EOF -if ! [ -s /etc/ssh/vm_git_myceliandre_access_id_rsa ]; then - curl -L --fail https://docker.0k.io/get/vm_git_myceliandre_access_id_rsa > /etc/ssh/vm_git_myceliandre_access_id_rsa || { - echo "Fatal: Could not retrieve http://docker.0k.io/get/vm_git_myceliandre_access_id_rsa ..." >&2 - rm -f /etc/ssh/vm_git_myceliandre_access_id_rsa - exit 1 - } - ## Not so usefull as it is public ! - chmod 0600 /etc/ssh/vm_git_myceliandre_access_id_rsa -fi +# if ! [ -s /etc/ssh/vm_git_myceliandre_access_id_rsa ]; then +# curl -L --fail https://docker.0k.io/get/vm_git_myceliandre_access_id_rsa > /etc/ssh/vm_git_myceliandre_access_id_rsa || { +# echo "Fatal: Could not retrieve http://docker.0k.io/get/vm_git_myceliandre_access_id_rsa ..." >&2 +# rm -f /etc/ssh/vm_git_myceliandre_access_id_rsa +# exit 1 +# } +# ## Not so usefull as it is public ! +# chmod 0600 /etc/ssh/vm_git_myceliandre_access_id_rsa +# fi mkdir -p /root/.ssh