[DRE-commits] [diaspora-installer] 01/03: refresh stale db message

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Mon May 11 14:02:42 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 e471854f4787bf9f7d4fdae7793ef15f156139b1
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date:   Mon May 11 18:10:28 2015 +0530

    refresh stale db message
---
 debian/diaspora-common.preinst | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/debian/diaspora-common.preinst b/debian/diaspora-common.preinst
index daae168..f6d5504 100755
--- a/debian/diaspora-common.preinst
+++ b/debian/diaspora-common.preinst
@@ -4,7 +4,7 @@ set -e
 # Check if PostgreSQL database diaspora_production exist
 if su diaspora -s /bin/sh -c "psql  diaspora_production -c ''"
 then
-    echo "You already have a PostgreSQL database named 'diaspora_production'."
+    echo "You already have a PostgreSQL database named 'diaspora_production'..."
     export dbexist='true'
 fi
 
@@ -26,10 +26,14 @@ case "$1" in
         if ! test -z $dbexist
         then
             # new install should not see existing database
-            echo "There is a PostgreSQl database 'diaspora_production', aborting installation..."
+            echo ""
+            echo "========================================================================="
+            echo "Aborting installation..."
             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."
+            echo "========================================================================="
+            echo ""
             exit 1
         fi
         ;;

-- 
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