From 0b40c49f544e28c509a69db5a1d88bfe9c2b3694 Mon Sep 17 00:00:00 2001 From: Frogg Date: Fri, 15 May 2026 16:29:43 +0200 Subject: [PATCH] - fix git init --- config/config_git.sh | 2 +- func/git.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/config_git.sh b/config/config_git.sh index 8fc8549..e755b20 100644 --- a/config/config_git.sh +++ b/config/config_git.sh @@ -5,4 +5,4 @@ CONFIG_GIT_SERVER="https://gitea.server.home/" CONFIG_GIT_USER="Frogg" CONFIG_GIT_EMAIL="admin@frogg.fr" -CONFIG_GIT_TOKEN_INIT="Frogg_Create" +CONFIG_GIT_TOKEN_INIT="b5cf2bc0dfb49473af979623e8cc251d0a68aad6" diff --git a/func/git.sh b/func/git.sh index eaa0307..5afb1ba 100644 --- a/func/git.sh +++ b/func/git.sh @@ -37,14 +37,14 @@ gitinit(){ git remote add origin "${3:-$CONFIG_GIT_SERVER}$(basename "$(pwd)")}" msg_info "Try to create repository on git server... - curl -X POST \"${CONFIG_GIT_SERVER}/api/v1/user/repos\" \\ + curl -X POST \"${CONFIG_GIT_SERVER}api/v1/user/repos\" \\ -H \"accept: application/json\" \\ -H \"Authorization: token ${CONFIG_GIT_TOKEN_INIT}\" \\ -H \"Content-Type: application/json\" \\ -d \"{\\\"name\\\":\\\"frogg_ssl_check\\\", \\\"private\\\":true}\"" # Create repo on git server - if ! curl -f -s -X POST "${CONFIG_GIT_SERVER}/api/v1/user/repos" \ + if ! curl -f -s -X POST "${CONFIG_GIT_SERVER}api/v1/user/repos" \ -H "accept: application/json" \ -H "Authorization: token ${CONFIG_GIT_TOKEN_INIT}" \ -H "Content-Type: application/json" \