Adding progress bars
This commit is contained in:
parent
42f84b7b74
commit
e834cd325f
|
|
@ -62,11 +62,11 @@ ENVEOF
|
||||||
if [[ "$USE_CACHE" == "false" ]]; then
|
if [[ "$USE_CACHE" == "false" ]]; then
|
||||||
echo "Building and starting docker compose for staging (no cache)..."
|
echo "Building and starting docker compose for staging (no cache)..."
|
||||||
docker compose -f docker-compose.stg.yml build --no-cache
|
docker compose -f docker-compose.stg.yml build --no-cache
|
||||||
docker compose -f docker-compose.stg.yml up -d
|
docker compose -f docker-compose.stg.yml up -d --remove-orphans
|
||||||
else
|
else
|
||||||
echo "Building and starting docker compose for staging (using cache)..."
|
echo "Building and starting docker compose for staging (using cache)..."
|
||||||
docker compose -f docker-compose.stg.yml build
|
docker compose -f docker-compose.stg.yml build
|
||||||
docker compose -f docker-compose.stg.yml up -d
|
docker compose -f docker-compose.stg.yml up -d --remove-orphans
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Checking running containers..."
|
echo "Checking running containers..."
|
||||||
|
|
@ -79,13 +79,13 @@ ENVEOF
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
echo "Syncing PDF files..."
|
echo "Syncing PDF files..."
|
||||||
rsync -a --delete --omit-dir-times --no-perms /mnt/vault/pdf/ /home/cmc/cmc-sales-staging/app/webroot/pdf/
|
rsync -a --delete --omit-dir-times --no-perms --progress /mnt/vault/pdf/ /home/cmc/cmc-sales-staging/app/webroot/pdf/
|
||||||
echo "Syncing attachments files..."
|
echo "Syncing attachments files..."
|
||||||
rsync -a --delete --omit-dir-times --no-perms /mnt/vault/attachments_files/ /home/cmc/cmc-sales-staging/app/webroot/attachments_files/
|
rsync -a --delete --omit-dir-times --no-perms --progress /mnt/vault/attachments_files/ /home/cmc/cmc-sales-staging/app/webroot/attachments_files/
|
||||||
echo "Syncing emails..."
|
echo "Syncing emails..."
|
||||||
rsync -a --delete --omit-dir-times --no-perms /mnt/vault/emails/ /home/cmc/cmc-sales-staging/vault/emails/
|
rsync -a --delete --omit-dir-times --no-perms --progress /mnt/vault/emails/ /home/cmc/cmc-sales-staging/vault/emails/
|
||||||
echo "Syncing vaultmsgs..."
|
echo "Syncing vaultmsgs..."
|
||||||
rsync -a --delete --omit-dir-times --no-perms /mnt/vault/vaultmsgs/ /home/cmc/cmc-sales-staging/vault/vaultmsgs/
|
rsync -a --delete --omit-dir-times --no-perms --progress /mnt/vault/vaultmsgs/ /home/cmc/cmc-sales-staging/vault/vaultmsgs/
|
||||||
echo "Sync complete."
|
echo "Sync complete."
|
||||||
EOF
|
EOF
|
||||||
chmod +x /home/cmc/sync_prod_to_staging.sh
|
chmod +x /home/cmc/sync_prod_to_staging.sh
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue