Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
884a8995
Unverified
Commit
884a8995
authored
Nov 22, 2023
by
neil
Committed by
GitHub
Nov 22, 2023
Browse files
Merge pull request #4853 from Max13/deploy/proxmoxve
Fix typo in proxmoxve deploy hook
parents
bb425952
00dbc388
Changes
1
Hide whitespace changes
Inline
Side-by-side
deploy/proxmoxve.sh
View file @
884a8995
...
@@ -99,11 +99,11 @@ proxmoxve_deploy() {
...
@@ -99,11 +99,11 @@ proxmoxve_deploy() {
_proxmoxve_api_token_key
=
"
$DEPLOY_PROXMOXVE_API_TOKEN_KEY
"
_proxmoxve_api_token_key
=
"
$DEPLOY_PROXMOXVE_API_TOKEN_KEY
"
_savedeployconf DEPLOY_PROXMOXVE_API_TOKEN_KEY
"
$DEPLOY_PROXMOXVE_API_TOKEN_KEY
"
_savedeployconf DEPLOY_PROXMOXVE_API_TOKEN_KEY
"
$DEPLOY_PROXMOXVE_API_TOKEN_KEY
"
fi
fi
_debug2 DEPLOY_PROXMOXVE_API_TOKEN_KEY _proxmoxve_api_token_key
_debug2 DEPLOY_PROXMOXVE_API_TOKEN_KEY
"
$
_proxmoxve_api_token_key
"
# PVE API Token header value. Used in "Authorization: PVEAPIToken".
# PVE API Token header value. Used in "Authorization: PVEAPIToken".
_proxmoxve_header_api_token
=
"
${
_proxmoxve_user
}
@
${
_proxmoxve_user_realm
}
!
${
_proxmoxve_api_token_name
}
=
${
_proxmoxve_api_token_key
}
"
_proxmoxve_header_api_token
=
"
${
_proxmoxve_user
}
@
${
_proxmoxve_user_realm
}
!
${
_proxmoxve_api_token_name
}
=
${
_proxmoxve_api_token_key
}
"
_debug2
"Auth Header"
_proxmoxve_header_api_token
_debug2
"Auth Header"
"
$
_proxmoxve_header_api_token
"
# Ugly. I hate putting heredocs inside functions because heredocs don't
# Ugly. I hate putting heredocs inside functions because heredocs don't
# account for whitespace correctly but it _does_ work and is several times
# account for whitespace correctly but it _does_ work and is several times
...
@@ -124,8 +124,8 @@ HEREDOC
...
@@ -124,8 +124,8 @@ HEREDOC
)
)
_debug2 Payload
"
$_json_payload
"
_debug2 Payload
"
$_json_payload
"
#
Push certificates to server
.
_info
"
Push certificates to server
"
export
_
HTTPS_INSECURE
=
1
export
HTTPS_INSECURE
=
1
export
_H1
=
"Authorization: PVEAPIToken=
${
_proxmoxve_header_api_token
}
"
export
_H1
=
"Authorization: PVEAPIToken=
${
_proxmoxve_header_api_token
}
"
_post
"
$_json_payload
"
"
$_target_url
"
""
POST
"application/json"
_post
"
$_json_payload
"
"
$_target_url
"
""
POST
"application/json"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment