Allow to disable umount within a job using CP_CAP_SKIP_UMOUNT parameter
@@ -1807,7 +1807,7 @@ if [ "$CP_CAP_KEEP_FAILED_RUN" ] && \
echo "Failure waiting timeout has been reached, proceeding with the cleanup and termination"
fi
-if check_installed "umount"; then
+if ! check_cp_cap "CP_CAP_SKIP_UMOUNT" && check_installed "umount"; then
echo "Unmounting all storage mounts"
umount -t cifs,fuse,nfs,nfs4,lustre -lfa
echo "Finished unmounting process"
@@ -1823,6 +1823,6 @@ else
rm -Rf $RUN_DIR
fi
-
+echo "Exiting with $CP_EXEC_RESULT"
exit "$CP_EXEC_RESULT"
######################################################
