Skip to content
Snippets Groups Projects
Commit 286ef860 authored by Pierre Ozoux's avatar Pierre Ozoux
Browse files

fixes #50 do not allow multiple host creation

parent 8f1968f0
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,13 @@ ...@@ -2,6 +2,13 @@
ROOT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/.. ROOT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/..
# check if there are already running servers
if [ "$(cat /etc/hosts | grep -q '.test' ; echo $?)" -eq 0 ]; then
echo "It looks like some servers are still running."
echo "please run ./script.stop.sh first if you want to create new servers."
exit 1
fi
# Create backup for tests # Create backup for tests
$ROOT_DIR/scripts/create_vultr.sh backup.test $ROOT_DIR/scripts/create_vultr.sh backup.test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment