I am trying to build a Debian package which installs a database (the DBMS is a dependency, this package makes sure a certain database is present). I would like postinst
to take care of initializing the database with a schema, for which I have prepared a .sql file. This .sql script is only needed during installation; I do not see a need to keep it around afterwards.
How would I include such a script (or any resource file needed only by postinst
) in a package? (Initializing the DB with the script is not the issue, as long as I know where the script resides.)