Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 ?

share|improve this question
add comment

1 Answer

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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