mirror of
https://github.com/ben-grande/qusal.git
synced 2025-08-09 06:32:24 -04:00
feat: allow to run setup outside of its directory
This commit is contained in:
parent
ee55df93d5
commit
5020239008
1 changed files with 1 additions and 0 deletions
|
@ -12,6 +12,7 @@ test "$(id -u)" = "0" || exec sudo "${0}"
|
||||||
group="qusal"
|
group="qusal"
|
||||||
file_roots="/srv/salt/${group}"
|
file_roots="/srv/salt/${group}"
|
||||||
|
|
||||||
|
cd "${0%/*}"/..
|
||||||
## Avoid having extra unwanted files.
|
## Avoid having extra unwanted files.
|
||||||
rm -rf "${file_roots}"
|
rm -rf "${file_roots}"
|
||||||
cp -f minion.d/*.conf /etc/salt/minion.d/
|
cp -f minion.d/*.conf /etc/salt/minion.d/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue