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
5ce8050e
Commit
5ce8050e
authored
Feb 07, 2022
by
John Elliott
Browse files
Update missing oathtool check
parent
5ae3a020
Changes
1
Hide whitespace changes
Inline
Side-by-side
deploy/synology_dsm.sh
View file @
5ce8050e
...
@@ -94,12 +94,12 @@ synology_dsm_deploy() {
...
@@ -94,12 +94,12 @@ synology_dsm_deploy() {
otp_code
=
""
otp_code
=
""
if
[
-n
"
$SYNO_TOTP_SECRET
"
]
;
then
if
[
-n
"
$SYNO_TOTP_SECRET
"
]
;
then
if
!
command
-v
oathtool &> /dev/null
if
_exists oathtool
;
then
then
otp_code
=
"
$(
oathtool
--base32
--totp
"
${
SYNO_TOTP_SECRET
}
"
2>/dev/null
)
"
else
_err
"oathtool could not be found, install oathtool to use SYNO_TOTP_SECRET"
_err
"oathtool could not be found, install oathtool to use SYNO_TOTP_SECRET"
exit
1
exit
1
fi
fi
otp_code
=
"
$(
oathtool
--base32
--totp
"
${
SYNO_TOTP_SECRET
}
"
2>/dev/null
)
"
fi
fi
if
[
-n
"
$SYNO_DID
"
]
;
then
if
[
-n
"
$SYNO_DID
"
]
;
then
...
...
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