Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
5d3bc95a
Unverified
Commit
5d3bc95a
authored
Feb 09, 2020
by
Brian Hartvigsen
Browse files
Fix some debug output
parent
de25232a
Changes
1
Show whitespace changes
Inline
Side-by-side
deploy/synology_dsm.sh
View file @
5d3bc95a
...
@@ -21,8 +21,6 @@
...
@@ -21,8 +21,6 @@
######## Public functions #####################
######## Public functions #####################
_syno_get_cookie_data
()
{
_syno_get_cookie_data
()
{
_debug2 Cookie
"
$1
"
_debug3
grep
"
$(
grep
"
\W
$1
="
"
$HTTP_HEADER
"
|
grep
"^Set-Cookie:"
| _tail_n 1 | _egrep_o
"
$1
=[^;]*;"
|
tr
-d
';'
)
"
grep
"
\W
$1
="
"
$HTTP_HEADER
"
|
grep
"^Set-Cookie:"
| _tail_n 1 | _egrep_o
"
$1
=[^;]*;"
|
tr
-d
';'
grep
"
\W
$1
="
"
$HTTP_HEADER
"
|
grep
"^Set-Cookie:"
| _tail_n 1 | _egrep_o
"
$1
=[^;]*;"
|
tr
-d
';'
}
}
...
@@ -95,13 +93,13 @@ synology_dsm_deploy() {
...
@@ -95,13 +93,13 @@ synology_dsm_deploy() {
_H2
=
"X-SYNO-TOKEN:
$token
"
_H2
=
"X-SYNO-TOKEN:
$token
"
export
_H1
export
_H1
export
_H2
export
_H2
_debug
3
H1
"
${
_H1
}
"
_debug
2
H1
"
${
_H1
}
"
_debug
3
H2
"
${
_H2
}
"
_debug
2
H2
"
${
_H2
}
"
# Now that we know the username and password are good, save them
# Now that we know the username and password are good, save them
_savedeployconf SYNO_Username
"
$SYNO_Username
"
_savedeployconf SYNO_Username
"
$SYNO_Username
"
_savedeployconf SYNO_Password
"
$SYNO_Password
"
_savedeployconf SYNO_Password
"
$SYNO_Password
"
_secure
_debug
2
token
"
$token
"
_debug token
"
$token
"
_info
"Getting certificates in Synology DSM"
_info
"Getting certificates in Synology DSM"
response
=
$(
_post
"api=SYNO.Core.Certificate.CRT&method=list&version=1"
"
$_base_url
/webapi/entry.cgi"
)
response
=
$(
_post
"api=SYNO.Core.Certificate.CRT&method=list&version=1"
"
$_base_url
/webapi/entry.cgi"
)
...
...
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