Created
April 15, 2019 00:55
-
-
Save feng-zhe/2d7af0e543ba1a9aa2e7590d5db46362 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If apt update is run, the scripts in /etc/apt/apt.conf.d/ also gets run. | |
So, if there is a job running apt update, we can put a file with following content under /etc/apt/apt.conf.d/: | |
APT::Update::Pre-Invoke {"/bin/bash /tmp/myshell.sh"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment