error message for failed readonly disable

This commit is contained in:
heavybullets8 2022-10-26 20:28:26 -06:00
parent 358fe207ca
commit 639f899627

View File

@ -166,7 +166,11 @@ do
done
# Ensure readonly is turned off
zfs set readonly=off "$pool"/ix-applications
if ! zfs set readonly=off "$pool"/ix-applications;then
echo -e "Error: Failed to set ZFS ReadOnly to \"off\""
echo -e "After the restore, attempt to run the following command manually:"
echo "zfs set readonly=off $pool/ix-applications"
fi
echo "Finished setting properties.."