mirror of
https://github.com/A6-9V/MQL5-Google-Onedrive.git
synced 2026-04-10 20:40:56 +00:00
- Created `mt5/MQL5/Include/ZoloBridge.mqh` for shared, secure (HTTPS) bridge logic with proper JSON sanitization. - Created `ExpertMACD_Enhanced.mq5`, `ExpertMAMA_Enhanced.mq5`, and `ExpertMAPSAR_Enhanced.mq5` using standard library and ZOLO bridge. - Refactored `EXNESS_GenX_Trader.mq5` and `SMC_TrendBreakout_MTF_EA.mq5` to use `ZoloBridge.mqh` and updated default URL to `https://genx-fx.com/api/signal`. - Updated `scripts/deploy_docker_hub.sh` and `scripts/update_vps.sh` to support `DOCKER_USERNAME` and `DOCKER_PASSWORD` environment variables. - Added `scripts/fix_profiles.py` to copy defaults to empty profile directories. - Added `SECRETS_TEMPLATE.md` for credential management guidance. - Updated EA link properties to Forge URL.
29 lines
956 B
Bash
Executable file
29 lines
956 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# ============================================================================
|
|
# VPS Update Script
|
|
# ============================================================================
|
|
# Pulls the latest Docker image and restarts the service.
|
|
# Run this on your VPS/Laptop.
|
|
# Usage: ./scripts/update_vps.sh [USERNAME] [TOKEN]
|
|
# Alternatively, set DOCKER_USERNAME and DOCKER_PASSWORD env vars.
|
|
# ============================================================================
|
|
|
|
set -e
|
|
|
|
# Optional login if arguments are provided or env vars exist
|
|
USERNAME=${1:-$DOCKER_USERNAME}
|
|
PASSWORD=${2:-$DOCKER_PASSWORD}
|
|
|
|
if [ -n "$USERNAME" ] && [ -n "$PASSWORD" ]; then
|
|
echo "Logging in to Docker Hub..."
|
|
echo "$PASSWORD" | docker login -u "$USERNAME" --password-stdin
|
|
fi
|
|
|
|
echo "Pulling latest image..."
|
|
docker-compose pull
|
|
|
|
echo "Restarting services..."
|
|
docker-compose up -d --remove-orphans
|
|
|
|
echo "✅ VPS updated and running!"
|
|
docker-compose ps
|