diff --git a/sh/cryptsetup.sh b/sh/cryptsetup.sh index a4792e6..fd20a64 100644 --- a/sh/cryptsetup.sh +++ b/sh/cryptsetup.sh @@ -99,7 +99,7 @@ rwx_crypt() { rwx_log_error 6 "Closing failure: ${crypt_arg}" fi # load device - if ! device="$(cat "${RWX_CRYPT_ROOT}/${crypt_arg}")"; then + if ! device="$(cat "${RWX_CRYPT_VAR}/${crypt_arg}")"; then rwx_log_error 7 "Loading failure: ${crypt_arg}" fi # disconnect device @@ -107,7 +107,7 @@ rwx_crypt() { rwx_log_error 8 "Disconnection failure: ${device}" fi # remove record - if ! rm "${RWX_CRYPT_ROOT}/${crypt_arg}"; then + if ! rm "${RWX_CRYPT_VAR}/${crypt_arg}"; then rwx_log_error 9 "Removal failure: ${crypt_arg}" fi ;;