Skip to content

Commit

Permalink
Merge pull request #56 from covermymeds/fix_auto_deploy_bug
Browse files Browse the repository at this point in the history
adjust for bug in report
  • Loading branch information
cjestel authored Jan 9, 2019
2 parents d8c96b0 + 96bdeeb commit 0f5727a
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 8 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 2019-01-09 Relase 1.4.2
### Summary
Auto deploy folder bug fix

### Changes
- Fix pathing issue when using auto deploy folders

## 2018-09-24 Relase 1.4.1
### Summary
Encryption, Remote Deploy, code cleanup
Expand Down
1 change: 1 addition & 0 deletions config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ module_list=

#this variable will force the client to use encryption or fail
force_encryption='false'

#user to make sure the script is being run as
run_as='postgres'

Expand Down
2 changes: 1 addition & 1 deletion dbdeployer_release
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=1.4.1
version=1.4.2
22 changes: 15 additions & 7 deletions plugins/git/deployment_report.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,25 @@ deployment_report() {
if [ "`git rev-parse --abbrev-ref --symbolic-full-name @{u}`" = "${branch_to_compare}" ]
then
FS_LIST=`eval "ls -o1 "${deploy_folder}"/*.sql | awk {'print ${deployment_report_argnum}'} | sort -rn | xargs"`

for j in ${FS_LIST}
do
# echo "file: $j"
FS_CHECKSUM=`md5sum "${j}" | awk {'print $1'}`
# echo "FS_CHECKSUM: $FS_CHECKSUM"
FS=`echo -e "${FS}\n$j--dbdeployer-md5sum--$FS_CHECKSUM"`
done
else
FS_LIST=`eval "git diff --name-only ${branch_to_compare} | grep \"^${dbname}/${i}/\" | grep '.sql' | xargs"`
for j in ${FS_LIST}
do
# echo "file: $j"
FS_CHECKSUM=`md5sum "${j}" | awk {'print $1'}`
# echo "FS_CHECKSUM: $FS_CHECKSUM"
FS=`echo -e "${FS}\n${db_basedir}/$j--dbdeployer-md5sum--$FS_CHECKSUM"`
done
fi

for j in ${FS_LIST}
do
# echo "file: $j"
FS_CHECKSUM=`md5sum "${j}" | awk {'print $1'}`
# echo "FS_CHECKSUM: $FS_CHECKSUM"
FS=`echo -e "${FS}\n$j--dbdeployer-md5sum--$FS_CHECKSUM"`
done

else
FS=''
Expand Down

0 comments on commit 0f5727a

Please sign in to comment.