- fix git init

This commit is contained in:
Frogg 2026-05-15 16:29:43 +02:00
parent 36efcf6039
commit 0b40c49f54
2 changed files with 3 additions and 3 deletions

View File

@ -5,4 +5,4 @@
CONFIG_GIT_SERVER="https://gitea.server.home/" CONFIG_GIT_SERVER="https://gitea.server.home/"
CONFIG_GIT_USER="Frogg" CONFIG_GIT_USER="Frogg"
CONFIG_GIT_EMAIL="admin@frogg.fr" CONFIG_GIT_EMAIL="admin@frogg.fr"
CONFIG_GIT_TOKEN_INIT="Frogg_Create" CONFIG_GIT_TOKEN_INIT="b5cf2bc0dfb49473af979623e8cc251d0a68aad6"

View File

@ -37,14 +37,14 @@ gitinit(){
git remote add origin "${3:-$CONFIG_GIT_SERVER}$(basename "$(pwd)")}" git remote add origin "${3:-$CONFIG_GIT_SERVER}$(basename "$(pwd)")}"
msg_info "Try to create repository on git server... 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 \"accept: application/json\" \\
-H \"Authorization: token ${CONFIG_GIT_TOKEN_INIT}\" \\ -H \"Authorization: token ${CONFIG_GIT_TOKEN_INIT}\" \\
-H \"Content-Type: application/json\" \\ -H \"Content-Type: application/json\" \\
-d \"{\\\"name\\\":\\\"frogg_ssl_check\\\", \\\"private\\\":true}\"" -d \"{\\\"name\\\":\\\"frogg_ssl_check\\\", \\\"private\\\":true}\""
# Create repo on git server # 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 "accept: application/json" \
-H "Authorization: token ${CONFIG_GIT_TOKEN_INIT}" \ -H "Authorization: token ${CONFIG_GIT_TOKEN_INIT}" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \