feat: allow to run setup outside of its directory

This commit is contained in:
Ben Grande 2024-01-18 09:25:01 +01:00
parent 0dd627b670
commit 9b740d8314

View File

@ -12,6 +12,7 @@ test "$(id -u)" = "0" || exec sudo "${0}"
group="qusal"
file_roots="/srv/salt/${group}"
cd "${0%/*}"/..
## Avoid having extra unwanted files.
rm -rf "${file_roots}"
cp -f minion.d/*.conf /etc/salt/minion.d/