mirror of
https://github.com/ben-grande/qusal.git
synced 2025-05-02 14:26:21 -04:00
refactor: initial commit
This commit is contained in:
commit
f6ac229306
594 changed files with 18600 additions and 0 deletions
19
scripts/setup.sh
Executable file
19
scripts/setup.sh
Executable file
|
@ -0,0 +1,19 @@
|
|||
#!/bin/sh
|
||||
|
||||
## SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
##
|
||||
## SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
set -eu
|
||||
|
||||
test "$(hostname)" = "dom0" || { echo "Must be run from dom0" >&2; exit 1; }
|
||||
test "$(id -u)" = "0" || exec sudo "${0}"
|
||||
|
||||
group="qusal"
|
||||
file_roots="/srv/salt/${group}"
|
||||
|
||||
## Avoid having extra unwanted files.
|
||||
rm -rf "${file_roots}"
|
||||
cp -f minion.d/*.conf /etc/salt/minion.d/
|
||||
mkdir -p "${file_roots}"
|
||||
cp -r salt/* "${file_roots}"
|
Loading…
Add table
Add a link
Reference in a new issue