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
5ae3a020
Commit
5ae3a020
authored
Feb 04, 2022
by
John Elliott
Browse files
Add err log for missing oathtool in Synology
Alerts the user that the oathtool is missing and the TOTP can't be generated.
parent
af193291
Changes
1
Hide whitespace changes
Inline
Side-by-side
deploy/synology_dsm.sh
View file @
5ae3a020
...
@@ -94,6 +94,11 @@ synology_dsm_deploy() {
...
@@ -94,6 +94,11 @@ 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
then
_err
"oathtool could not be found, install oathtool to use SYNO_TOTP_SECRET"
exit
1
fi
otp_code
=
"
$(
oathtool
--base32
--totp
"
${
SYNO_TOTP_SECRET
}
"
2>/dev/null
)
"
otp_code
=
"
$(
oathtool
--base32
--totp
"
${
SYNO_TOTP_SECRET
}
"
2>/dev/null
)
"
fi
fi
...
...
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