added funmap deployment
This commit is contained in:
21
deploy_funmaps.sh
Normal file
21
deploy_funmaps.sh
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Exit immediately if a command exits with a non-zero status.
|
||||||
|
set -e
|
||||||
|
|
||||||
|
echo "Stopping Docker container..."
|
||||||
|
docker-compose down
|
||||||
|
|
||||||
|
echo "Cloning configuration repository..."
|
||||||
|
sudo git clone ssh://git@git.zinomedia.de:222/zino/lgsm-cs-funmaps-addon.git /opt/docker/lgsm-cs-funmaps-addon
|
||||||
|
|
||||||
|
echo "Merging configuration with volumes..."
|
||||||
|
sudo rsync -a /opt/docker/lgsm-cs-funmaps-addon/ /opt/docker/lgsm-cs/volumes/
|
||||||
|
|
||||||
|
echo "Removing configuration repository..."
|
||||||
|
sudo rm -rf /opt/docker/lgsm-cs-funmaps-addon
|
||||||
|
|
||||||
|
echo "Starting Docker container with customized configuration..."
|
||||||
|
docker-compose up -d
|
||||||
|
|
||||||
|
echo "Deployment completed successfully."
|
||||||
Reference in New Issue
Block a user