From e9f0821ff83aea3922cdabd55470739881ad67a2 Mon Sep 17 00:00:00 2001 From: Christoph Date: Fri, 16 Jun 2017 00:29:03 +0200 Subject: [PATCH] Minor changes on script output --- install_roundcube.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/install_roundcube.sh b/install_roundcube.sh index 1dc6f1d..745d679 100755 --- a/install_roundcube.sh +++ b/install_roundcube.sh @@ -1322,9 +1322,10 @@ echo -e "\n\n\t\033[37m\033[1mSetup Database '$DB_TYPE'..\033[m\n" # - # - echo "" -echononl "\tCreate Database if needed" +echononl "\tCreate Database '$DB_NAME'" _failed=false if [ "$DB_TYPE" = "mysql" ]; then + echo -n " (MySQL).." if ! mysql -u$_mysql_rootuser -p$_mysql_rootpass -N -s -e \ "SELECT SCHEMA_NAME FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME = '$DB_NAME'" 2>/dev/null \ | grep $DB_NAME > /dev/null 2>&1 ; then @@ -1351,6 +1352,7 @@ if [ "$DB_TYPE" = "mysql" ]; then echo_skipped fi elif [ "$DB_TYPE" = "pgsql" ]; then + echo -n " (PostgreSQL).." count=`su - postgres -c "psql -q -A -t -l" | grep -c -e "^$DB_NAME"` if [ $count -eq 0 ];then echo "CREATE ROLE $DB_USER WITH LOGIN NOCREATEDB NOCREATEROLE NOSUPERUSER ENCRYPTED PASSWORD '$DB_PASS'" \ @@ -1518,6 +1520,7 @@ fi echo -e "\n\n\t\033[37m\033[1mEnable Spellcheccking..\033[m\n" +echononl "\tInstall needed debian packages.." needed_packages_spell="" _needed_packages_spell=" aspell-en