![]() ![]() | ![]() |
version 1.2, 2012/09/06 20:23:54 | version 1.3, 2012/09/06 21:16:42 |
---|---|
Line 7 | Line 7 |
# the default ports | # the default ports |
function getdefault_dbport { | function getdefault_dbport { |
if [ "$DBTYPE" = "mysql" ]; then | if [ "$curtype" = "mysql" ]; then |
echo -n "3306" | echo -n "3306" |
elif [ "$DBTYPE" = "postgresql" ]; then | elif [ "$curtype" = "postgresql" ]; then |
echo -n "5432" | echo -n "5432" |
fi | fi |
} | } |