scripts/install_xtuple: ignore error dropping previous DB
authorDaniel Pocock <daniel@pocock.pro>
Sat, 3 May 2014 13:37:28 +0000 (15:37 +0200)
committerDaniel Pocock <daniel@pocock.pro>
Sat, 3 May 2014 13:37:28 +0000 (15:37 +0200)
scripts/install_xtuple.sh

index 2e11527..90dc618 100644 (file)
@@ -176,7 +176,7 @@ setup_postgres() {
        sudo service postgresql restart
 
   log "dropping existing db, if any..."
-       sudo -u postgres dropdb $DATABASE
+       sudo -u postgres dropdb $DATABASE || true
 
        cdir $BASEDIR/postgres