Unverified Commit 5a237795 authored by neil's avatar neil Committed by GitHub
Browse files

Merge pull request #3928 from johnelliott/missing-oathtool-dep-error

Add err log for missing oathtool in Synology
parents af193291 3a99a771
......@@ -94,7 +94,12 @@ synology_dsm_deploy() {
otp_code=""
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
if [ -n "$SYNO_DID" ]; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment