Preserve current working directory

This commit is contained in:
Joey Hafner 2022-11-01 15:58:24 -07:00
parent b0245a9639
commit 97f292d41c

View File

@ -1,7 +1,9 @@
#!/bin/bash
DIR=$(pwd)
# Apply updated EXPORT_SERVERS
cd /home/joey/homelab/server/config/monitoring && docker-compose up -d --force-recreate exporter-minecraft
# Apply updated router mappings
cd /home/joey/homelab/server/config/minecraft && docker-compose up -d --force-recreate router
cd $DIR