Cleanup of earlier merge

This commit is contained in:
root
2022-05-04 13:50:33 +02:00
parent 03d1a83439
commit cfceb6d435
12 changed files with 108 additions and 138 deletions

View File

@@ -1,8 +1,24 @@
#!/bin/bash -e
source site.conf
source lib/functions.sh
if [ $# -eq 0 ]; then
echo "Please provide a Project as argument"
exit 1
fi
if [ $1 != "ccp" ] && [ $1 != "nngm" ] && [ $1 != "gbn" ]; then
echo "Please provide a supported project like ccp, gbn or nngm"
exit 1
fi
export project=$1
if ! ./lib/prerequisites.sh; then
log "Prerequisites failed, exiting"
exit 1
fi
echo "Stopping systemd services and removing bridgehead ..."
systemctl disable --now bridgehead@${project}.service bridgehead-update@${project}.timer bridgehead-update@${project}.service