Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.

Commit c27ea5a

Browse files
committed
Code style fix
1 parent 5707637 commit c27ea5a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

nancy_run.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1148,7 +1148,7 @@ elif [[ "$RUN_ON" == "aws" ]]; then
11481148
msg " docker-machine ssh $DOCKER_MACHINE"
11491149

11501150
if [[ "$RUN_ON" == "aws" ]] && [[ ! -z ${DB_EBS_VOLUME_ID+x} ]]; then
1151-
attach_db_ebs_drive;
1151+
attach_db_ebs_drive
11521152
fi
11531153

11541154
docker-machine ssh $DOCKER_MACHINE "sudo sh -c \"mkdir /home/storage\""
@@ -1199,7 +1199,7 @@ function cp_db_ebs_backup() {
11991199
msg "Extract database backup from EBS volume"
12001200
docker_exec bash -c "rm -rf /var/lib/postgresql/9.6/main/*"
12011201

1202-
local op_start_time=$(date +%s);
1202+
local op_start_time=$(date +%s)
12031203
docker_exec bash -c "rm -rf /var/lib/postgresql/$PG_VERSION/main/*"
12041204
local result=$(docker_exec bash -c "([[ -f /backup/base.tar.gz ]] \
12051205
&& tar -C /storage/postgresql/$PG_VERSION/main/ -xzvf /backup/base.tar.gz) || true")
@@ -1216,7 +1216,7 @@ function cp_db_ebs_backup() {
12161216
result=$(docker_exec bash -c "([[ -f /backup/pg_wal.tar ]] \
12171217
&& tar -C /storage/postgresql/$PG_VERSION/main/pg_wal -xvf /backup/pg_wal.tar) || true")
12181218

1219-
local end_time=$(date +%s);
1219+
local end_time=$(date +%s)
12201220
local duration=$(echo $((end_time-op_start_time)) | awk '{printf "%d:%02d:%02d", $1/3600, ($1/60)%60, $1%60}')
12211221
msg "Time taken to extract database backup from EBS volume: $duration."
12221222

@@ -1638,7 +1638,7 @@ sleep 2 # wait for postgres up&running
16381638
apply_commands_after_container_init
16391639
apply_sql_before_db_restore
16401640
if [[ -z ${DB_EBS_VOLUME_ID+x} ]]; then
1641-
restore_dump;
1641+
restore_dump
16421642
fi
16431643
apply_sql_after_db_restore
16441644
docker_exec bash -c "psql -U postgres $DB_NAME -b -c 'create extension if not exists pg_stat_statements;' $VERBOSE_OUTPUT_REDIRECT"

0 commit comments

Comments
 (0)