Minor changes on script output
This commit is contained in:
parent
3e28b983a6
commit
e9f0821ff8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user