diff options
author | Pablo Olmos de Aguilera Corradini <pablo@glatelier.org> | 2013-09-15 16:50:02 -0300 |
---|---|---|
committer | Mike Burns <mike@mike-burns.com> | 2014-02-07 14:40:44 +0100 |
commit | 83c4875e23bb7595689ddd228a9825264b15f318 (patch) | |
tree | ac816ae59a46d5d1546cc501e664dffb77c56f2a /man/rcup.1 | |
parent | 3bdc2c7deaa50e7d9aedd05669299489f9bc7f71 (diff) |
Allow {pre,post}-up hook directories
If the `pre-up` or `post-up` files are actually directories, run the
executable contents of them in an arbitrary order.
Diffstat (limited to 'man/rcup.1')
-rw-r--r-- | man/rcup.1 | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -114,9 +114,14 @@ Hooks go in a directory named .Pa hooks . Two hooks are supported by .Nm rcup : -pre-up and post-up . These go in files with predictable filenames: -.Pa .dotfiles/hooks/pre-up and -.Pa .dotfiles/hooks/post-up . +pre-up and post-up. These go in files or directories with predictable filenames: +.Pa .dotfiles/hooks/pre-up +and +.Pa .dotfiles/hooks/post-up , +or +.Pa .dotfiles/hooks/pre-up/* +and +.Pa .dotfiles/hooks/post-up/* . These files must be executable. They are run every time .Nm is run, and therefore must be idempotent. |