Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: make sure get the rclone profile name for the upsteam live
Browse files Browse the repository at this point in the history
kencho51 committed Oct 24, 2024

Verified

This commit was signed with the committer’s verified signature.
1 parent b208b5d commit 7ca6611
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gigadb/app/tools/sync-dropbox/scripts/sync_dropbox.sh
Original file line number Diff line number Diff line change
@@ -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"
;;

0 comments on commit 7ca6611

Please sign in to comment.