[DRE-commits] [diaspora-installer] 11/21: exit if db already exist

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Mon May 11 12:36:48 UTC 2015


This is an automated email from the git hooks/post-receive script.

praveen pushed a commit to branch master
in repository diaspora-installer.

commit b365f8904232d6501a3a286e6864ab4de6005c4a
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date:   Mon May 11 15:13:29 2015 +0530

    exit if db already exist
---
 debian/diaspora-common.postinst | 1 +
 1 file changed, 1 insertion(+)

diff --git a/debian/diaspora-common.postinst b/debian/diaspora-common.postinst
index 200aa76..3df81c9 100755
--- a/debian/diaspora-common.postinst
+++ b/debian/diaspora-common.postinst
@@ -48,6 +48,7 @@ case "$1" in
                 echo "You may drop the database and try reinstalling"
                 echo "Command to drop the database: su postgres -c 'dropdb diaspora_production'"
                 echo "WARNING: This will remove all the data in diaspora_production database."
+                exit 1
             fi
 
         else

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/diaspora-installer.git



More information about the Pkg-ruby-extras-commits mailing list