I need to modify a dpkg installer, since one file does not run correctly after being installed, and it needs to be owned by root but run with caller user id.
I tried to put the commands required in a postinst file, but nothing happens.
#!/bin/sh
chown root /data/usr/bin/TheApp
chgrp root /data/usr/bin/TheApp
chmod +s /data/usr/bin/TheApp
exit 0
Where should I place the commands such that they are performed during dpkg -i ?
I have seen similar questions, most say to put in postinst - if that is correct, something must be wrong with the postinst file.
I noticed that the postinst file exists in the folder created - but not in the compressed .deb file.
What can be keeping the postinst file from being copied over to the debian package when calling dpkg -b ?