Restore doesn't work: ./db.sql: No such file or directory

I’m a little lost… Upgrade of my GitHub - YunoHost-Apps/pyinventory_ynh: YunoHost app package for: https://github.com/jedie/PyInventory · GitHub packages has made good progress… But restore doesn’t work currently:

restore: line 54: ./db.sql: No such file or directory

e.g.: YunoRunner for CI

But in my local made tests exists the dump file in the archive:

I doesn’t do magic: The “backup” just calls:

ynh_psql_dump_db > db.sql

and the “restore” script:

ynh_psql_db_shell < ./db.sql

See my current PR: master <- testing by jedie · Pull Request #167 · YunoHost-Apps/pyinventory_ynh · GitHub

Ah! I think i found the bug: a cd “$data_dir” in a common.sh script…