Script after, required

Hello, it is my copies I have to execute two scripts.
One before, which mounts the target volume and another after, which disassembles it.
The first one works correctly, I configure it as required; But the second is not going well.
It was necessary that the second one also be required.
Thank you

Welcome to the forum @Souto

This is too vague to do anything with. Is there a Duplicati question or issue, or is this purely about unmount? Forum support here specializes in Duplicati. General mount/unmount answers can be found on the Internet.