jplew / SyncDB

Bash script meant to take the tedium out of deploying and updating database-driven (eg Wordpress) websites. It rapidly synchronizes local and remote versions of a MySQL database, performs the necessary search and replace queries, then synchronizes all your uploads/binaries.
MIT License
234 stars 41 forks source link

Use /bin/bash rather than /bin/sh #3

Closed markchitty closed 10 years ago

markchitty commented 10 years ago

Hi,

Many thanks for the script - I'm hoping it's going to be a useful deployment tool for me :)

I've just tried running the script on my VVV vagrant VM and it failed. With some help I figured out that /bin/sh on an Ubuntu machine points to dash rather than bash. Changing the first line from #!/bin/sh to #!/bin/bash solved the problem. According to the article, this will work on non-Ubuntu servers as well so should be a safe cross-platform change.

jplew commented 10 years ago

thanks for the tip, I fixed it. I myself just switched to a Digital Ocean Ubuntu droplet and was experiencing the same problem. I haven't tested on any CentOS servers yet, but if you run into any more problems please let me know..