I am building a .deb package for the first time. I have two files namely, app.py and my_setting.sh which i want to package. I am able to place the app.py file in particular directory. What I am trying to do now is to run a bash script my_setting.sh during package installation by user.
I have searched but didn't find any feasible solution.
Create a document named 'postinst' in DEBIAN directory. Put the command to run setting.sh in that file and build the package. You can use this link too. https://www.leaseweb.com/labs/2013/06/creating-custom-debian-packages/