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
cf86d57a
Unverified
Commit
cf86d57a
authored
Jul 20, 2023
by
Scruel Tao
Committed by
GitHub
Jul 20, 2023
Browse files
Fix for shfmt check
parent
9e958f4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
deploy/synology_dsm.sh
View file @
cf86d57a
...
@@ -66,7 +66,7 @@ synology_dsm_deploy() {
...
@@ -66,7 +66,7 @@ synology_dsm_deploy() {
SYNO_Device_Name
=
SYNO_Device_Name
=
SYNO_Device_ID
=
SYNO_Device_ID
=
fi
fi
if
[
-z
"
${
SYNO_Username
:-}
"
]
||
[
-z
"
${
SYNO_Password
:-}
"
]
;
then
if
[
-z
"
${
SYNO_Username
:-}
"
]
||
[
-z
"
${
SYNO_Password
:-}
"
]
;
then
_err
"You must set either SYNO_USE_TEMP_ADMIN, or set both SYNO_Username and SYNO_Password."
_err
"You must set either SYNO_USE_TEMP_ADMIN, or set both SYNO_Username and SYNO_Password."
return
1
return
1
...
@@ -104,8 +104,7 @@ synology_dsm_deploy() {
...
@@ -104,8 +104,7 @@ synology_dsm_deploy() {
_err
"Do not use a backslash (
\)
in your certificate description"
_err
"Do not use a backslash (
\)
in your certificate description"
return
1
return
1
fi
fi
_base_url
=
"
$SYNO_Scheme
://
$SYNO_Hostname
:
$SYNO_Port
"
_base_url
=
"
$SYNO_Scheme
://
$SYNO_Hostname
:
$SYNO_Port
"
_debug _base_url
"
$_base_url
"
_debug _base_url
"
$_base_url
"
_debug
"Getting API version"
_debug
"Getting API version"
...
@@ -259,7 +258,7 @@ _logout() {
...
@@ -259,7 +258,7 @@ _logout() {
_remove_temp_admin
()
{
_remove_temp_admin
()
{
flag
=
$1
flag
=
$1
username
=
$2
username
=
$2
if
[
-n
"
${
flag
}
"
]
;
then
if
[
-n
"
${
flag
}
"
]
;
then
_debug
"Removing temp admin user in Synology DSM"
_debug
"Removing temp admin user in Synology DSM"
synouser
--del
"
$username
"
>
/dev/null
synouser
--del
"
$username
"
>
/dev/null
...
...
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