add colors
This commit is contained in:
@@ -3,19 +3,24 @@
|
||||
# Exit immediately if a command exits with a non-zero status.
|
||||
set -e
|
||||
|
||||
echo "Stopping Docker container..."
|
||||
# Function to display [INFO] in blue and the message in default color
|
||||
info() {
|
||||
echo -e "\033[0;34m[INFO]\033[0m $1"
|
||||
}
|
||||
|
||||
info "Stopping Docker container..."
|
||||
docker-compose down
|
||||
|
||||
echo "Cloning configuration repository..."
|
||||
info "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..."
|
||||
info "Merging configuration with volumes..."
|
||||
sudo rsync -a /opt/docker/lgsm-cs-funmaps-addon/ /opt/docker/lgsm-cs/volumes/
|
||||
|
||||
echo "Removing configuration repository..."
|
||||
info "Removing configuration repository..."
|
||||
sudo rm -rf /opt/docker/lgsm-cs-funmaps-addon
|
||||
|
||||
echo "Starting Docker container with customized configuration..."
|
||||
info "Starting Docker container with customized configuration..."
|
||||
docker-compose up -d
|
||||
|
||||
echo "Deployment completed successfully."
|
||||
info "Deployment completed successfully."
|
||||
|
||||
Reference in New Issue
Block a user