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" \