From 7ca6611cba1e6a71cc84a21a717998fd45502b66 Mon Sep 17 00:00:00 2001 From: kencho Date: Thu, 24 Oct 2024 14:38:25 +0900 Subject: [PATCH] refactor: make sure get the rclone profile name for the upsteam live --- gigadb/app/tools/sync-dropbox/scripts/sync_dropbox.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gigadb/app/tools/sync-dropbox/scripts/sync_dropbox.sh b/gigadb/app/tools/sync-dropbox/scripts/sync_dropbox.sh index bf38d4c7f1..3ad0188dbd 100755 --- a/gigadb/app/tools/sync-dropbox/scripts/sync_dropbox.sh +++ b/gigadb/app/tools/sync-dropbox/scripts/sync_dropbox.sh @@ -76,7 +76,7 @@ function start_sync () { rclone_sync_cmd="/usr/local/bin/rclone sync production-staging:/share/dropbox/ /share/dropbox" ;; live) - ENV=$(awk 'NR==10 {print $10}' ${RCLONE_CONF} | tr -d '[]') + ENV=$(awk 'NR==10 {print $1}' ${RCLONE_CONF} | tr -d '[]') echo -e "$(date +'%Y/%m/%d %H:%M:%S') INFO : Start sync dropbox from ${ENV} to alt ${GIGADB_ENV}" | tee -a "${LOGFILE}" rclone_sync_cmd="/usr/local/bin/rclone sync production-live:/share/dropbox/ /share/dropbox" ;;