fix: stuff from server-docker-compose.sh

This commit is contained in:
Strix 2023-10-20 02:09:35 +02:00
parent 253dbe741c
commit b4fce18062
No known key found for this signature in database
GPG key ID: 49B2E37B8915B774

View file

@ -2,13 +2,13 @@
# manage docker-compose with this macro
if ! [ -d "servers/$(hostname)" ]; then
echo "couldn't find servers/$(hostname)"
if ! [ -d "servers/$HOSTNAME" ]; then
echo "couldn't find servers/$HOSTNAME"
exit 1
fi
dc_args="-p $(hostname)"
for f in servers/$(hostname)/docker-compose.d/*.yml; do
dc_args="-p $HOSTNAME"
for f in servers/$HOSTNAME/docker-compose.d/*.yml; do
dc_args="$dc_args -f $f"
done