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
b3b00b67
Unverified
Commit
b3b00b67
authored
Sep 30, 2019
by
Brian Hartvigsen
Browse files
Using domainconf instead of account
parent
8e8cda13
Changes
1
Hide whitespace changes
Inline
Side-by-side
deploy/synology_dsm.sh
View file @
b3b00b67
...
@@ -31,8 +31,8 @@ synology_dsm_deploy() {
...
@@ -31,8 +31,8 @@ synology_dsm_deploy() {
_debug _cdomain
"
$_cdomain
"
_debug _cdomain
"
$_cdomain
"
# Get Username and Password, but don't save until we successfully authenticate
# Get Username and Password, but don't save until we successfully authenticate
SYNO_Username
=
"
${
SYNO_Username
:-
$(
_read
accountconf_mutable
SYNO_Username
)
}
"
SYNO_Username
=
"
${
SYNO_Username
:-
$(
_read
domainconf
SYNO_Username
)
}
"
SYNO_Password
=
"
${
SYNO_Password
:-
$(
_read
accountconf_mutable
SYNO_Password
)
}
"
SYNO_Password
=
"
${
SYNO_Password
:-
$(
_read
domainconf
SYNO_Password
)
}
"
if
[
-z
"
$SYNO_Username
"
]
||
[
-z
"
$SYNO_Password
"
]
;
then
if
[
-z
"
$SYNO_Username
"
]
||
[
-z
"
$SYNO_Password
"
]
;
then
SYNO_Username
=
""
SYNO_Username
=
""
SYNO_Password
=
""
SYNO_Password
=
""
...
@@ -43,12 +43,12 @@ synology_dsm_deploy() {
...
@@ -43,12 +43,12 @@ synology_dsm_deploy() {
_secure_debug2 SYNO_Password
"
$SYNO_Password
"
_secure_debug2 SYNO_Password
"
$SYNO_Password
"
# Optional scheme, hostname, and port for Synology DSM
# Optional scheme, hostname, and port for Synology DSM
SYNO_Scheme
=
"
${
SYNO_Scheme
:-
$(
_read
accountconf_mutable
SYNO_Scheme
)
}
"
SYNO_Scheme
=
"
${
SYNO_Scheme
:-
$(
_read
domainconf
SYNO_Scheme
)
}
"
SYNO_Hostname
=
"
${
SYNO_Hostname
:-
$(
_read
accountconf_mutable
SYNO_Hostname
)
}
"
SYNO_Hostname
=
"
${
SYNO_Hostname
:-
$(
_read
domainconf
SYNO_Hostname
)
}
"
SYNO_Port
=
"
${
SYNO_Port
:-
$(
_read
accountconf_mutable
SYNO_Port
)
}
"
SYNO_Port
=
"
${
SYNO_Port
:-
$(
_read
domainconf
SYNO_Port
)
}
"
_save
accountconf_mutable
SYNO_Scheme
"
$SYNO_Scheme
"
_save
domainconf
SYNO_Scheme
"
$SYNO_Scheme
"
_save
accountconf_mutable
SYNO_Hostname
"
$SYNO_Hostname
"
_save
domainconf
SYNO_Hostname
"
$SYNO_Hostname
"
_save
accountconf_mutable
SYNO_Port
"
$SYNO_Port
"
_save
domainconf
SYNO_Port
"
$SYNO_Port
"
# default vaules for scheme, hostname, and port
# default vaules for scheme, hostname, and port
# defaulting to localhost and http because it's localhost...
# defaulting to localhost and http because it's localhost...
...
@@ -97,8 +97,8 @@ synology_dsm_deploy() {
...
@@ -97,8 +97,8 @@ synology_dsm_deploy() {
fi
fi
# Now that we know the username and password are good, save them
# Now that we know the username and password are good, save them
_save
accountconf_mutable
SYNO_Username
"
$SYNO_Username
"
_save
domainconf
SYNO_Username
"
$SYNO_Username
"
_save
accountconf_mutable
SYNO_Password
"
$SYNO_Password
"
_save
domainconf
SYNO_Password
"
$SYNO_Password
"
_secure_debug2 token
"
$token
"
_secure_debug2 token
"
$token
"
# Use token and session id to get the list of certificates
# Use token and session id to get the list of certificates
...
...
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