Browse Source
Merge pull request #3928 from johnelliott/missing-oathtool-dep-error
Add err log for missing oathtool in Synology
pull/3934/head
neil
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
1 deletions
-
deploy/synology_dsm.sh
|
@ -94,7 +94,12 @@ synology_dsm_deploy() { |
|
|
|
|
|
|
|
|
otp_code="" |
|
|
otp_code="" |
|
|
if [ -n "$SYNO_TOTP_SECRET" ]; then |
|
|
if [ -n "$SYNO_TOTP_SECRET" ]; then |
|
|
otp_code="$(oathtool --base32 --totp "${SYNO_TOTP_SECRET}" 2>/dev/null)" |
|
|
|
|
|
|
|
|
if _exists oathtool; 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" |
|
|
|
|
|
return 1 |
|
|
|
|
|
fi |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
if [ -n "$SYNO_DID" ]; then |
|
|
if [ -n "$SYNO_DID" ]; then |
|
|