1

Question:

I have customized an application startup script. Unfortunately, it gets overwritten every time I do

apt-get dist-upgrade

when there is an update available (quite often).

Now I have written a script that makes a backup copy of the original, then modifies the original and merges my changes.

Now my question: How can I trigger a script execution after a package has been updated ?

0

If this is an init script, you can usually make your tweaks in /etc/default/$PKG_NAME. Otherwise, you can use dpkg-divert to stop dpkg from touching the file.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.