From f70a03420051bdb32bcf454e4d42937abaf76b0c Mon Sep 17 00:00:00 2001 From: ale <ale@incal.net> Date: Sat, 7 Dec 2024 15:11:23 +0000 Subject: [PATCH] Create SSH config dir if not exists --- ci-setup-ssh.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ci-setup-ssh.sh b/ci-setup-ssh.sh index 3db642a1..c644eb25 100755 --- a/ci-setup-ssh.sh +++ b/ci-setup-ssh.sh @@ -6,7 +6,8 @@ key_dir="${BUILD_DIR}/ssh" key_path="${key_dir}/vmkey" -config_path="/root/.ssh/config" +config_dir="/root/.ssh" +config_path="${config_dir}/config" set -e @@ -20,6 +21,8 @@ fi # Configure SSH to use it for the 10/8 network # (the network used by vmine). +mkdir -p "${config_dir}" +chmod 0700 "${config_dir}" cat >> "${config_path}" <<EOF Host 10.* User root -- GitLab