fix: generic-ify mgmt API URL in run-clustered.sh

This commit is contained in:
spiral 2022-04-20 10:44:43 -04:00
parent 5d24e86a7e
commit 99e4c9005d
No known key found for this signature in database
GPG Key ID: 244A11E4B0BCF40E

View File

@ -1,10 +1,10 @@
#!/bin/sh
notify () {
curl http://172.17.0.1:8081/notify -d "$1"
curl $MGMT/notify -d "$1"
}
curl http://172.17.0.1:8081/config > pluralkit.conf
curl $MGMT/config > pluralkit.conf
notify "Cluster $NOMAD_ALLOC_INDEX starting"