Added user bridgehead and made changes to run bridghead as this user

This commit is contained in:
root
2022-03-25 10:41:15 +01:00
parent 03f3f5ed94
commit 5bacdf02fb
7 changed files with 152 additions and 43 deletions

View File

@@ -3,9 +3,7 @@
source lib/functions.sh
exitIfNotRoot
if ! ./lib/prerequisites.sh; then
if ! su bridgehead ./lib/prerequisites.sh; then
log "Prerequisites failed, exiting"
exit 1
fi
@@ -20,6 +18,8 @@ cp -v \
systemctl daemon-reload
su bridgehead source ./lib/generate.sh
echo
if ! systemctl is-active --quiet bridgehead@"${project}"; then