diff options
author | Wynn Wolf Arbor | 2020-01-20 22:42:41 +0100 |
---|---|---|
committer | Wynn Wolf Arbor | 2020-01-20 22:42:41 +0100 |
commit | 35c5aa0bf28a190c8b5e2166164decfbb5517770 (patch) | |
tree | 2fce0f4e54de459b7b6939135d8360b7e992a146 | |
parent | 53b23eabac7f7c801df6111989eba1d812daa760 (diff) | |
download | bosun-35c5aa0bf28a190c8b5e2166164decfbb5517770.tar.gz |
Have rebuild accept one or more roles
This lets the user rebuild (or restow) specific roles and will fix a
certain issue with stow refusing to unstow everything.
Diffstat (limited to '')
-rwxr-xr-x | bosun | 8 | ||||
-rw-r--r-- | bosun.1 | 8 |
2 files changed, 11 insertions, 5 deletions
@@ -27,7 +27,11 @@ flush() { rebuild() { need_root - list | xargs -- stow -R + if test $# -gt 0; then + stow -R "$@" + else + list | xargs -- stow -R + fi } list() { @@ -66,7 +70,7 @@ case $cmd in add) add "$@";; flush) flush;; list) list "$@";; - rebuild) rebuild;; + rebuild) rebuild "$@";; remove) remove "$@";; *) list_active;; esac @@ -1,4 +1,4 @@ -.Dd January 17, 2020 +.Dd January 20, 2020 .Dt BOSUN 1 .Os .Sh NAME @@ -47,10 +47,12 @@ Lists all roles. .It Sy available Lists roles that are not active on the system. .El -.It Sy rebuild -Deactivates all active roles and then activates them again. +.It Sy rebuild [ Em role ... ] +Deactivates the given roles and then activates them again. This is used to incorporate files that have been added to an already active role. +.Pp +If no roles are given, rebuild all active roles. .It Sy remove Em role ... Deactivates the given roles on the system. .El |