Removed trailing whitespaces
This commit is contained in:
@@ -11,7 +11,7 @@ do
|
||||
if [ -f "$possible/pg_hba.conf" ]
|
||||
then
|
||||
# echo "PGDATA: $possible"
|
||||
export PGDATA=$possible
|
||||
export PGDATA=$possible
|
||||
fi
|
||||
done
|
||||
|
||||
@@ -23,7 +23,7 @@ function postgres_start {
|
||||
about 'Starts PostgreSQL server'
|
||||
group 'postgres'
|
||||
|
||||
echo 'Starting Postgres....';
|
||||
echo 'Starting Postgres....';
|
||||
$POSTGRES_BIN/pg_ctl -D $PGDATA -l $PGDATA/logfile start
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ function postgres_stop {
|
||||
about 'Stops PostgreSQL server'
|
||||
group 'postgres'
|
||||
|
||||
echo 'Stopping Postgres....';
|
||||
echo 'Stopping Postgres....';
|
||||
$POSTGRES_BIN/pg_ctl -D $PGDATA -l $PGDATA/logfile stop -s -m fast
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ function postgres_status {
|
||||
about 'Returns status of PostgreSQL server'
|
||||
group 'postgres'
|
||||
|
||||
# $POSTGRES_BIN/pg_ctl -D $PGDATA status
|
||||
# $POSTGRES_BIN/pg_ctl -D $PGDATA status
|
||||
if [[ $(is_postgres_running) == "no server running" ]]
|
||||
then
|
||||
echo "Postgres service [STOPPED]"
|
||||
@@ -58,7 +58,7 @@ function postgres_restart {
|
||||
about 'Restarts status of PostgreSQL server'
|
||||
group 'postgres'
|
||||
|
||||
echo 'Restarting Postgres....';
|
||||
echo 'Restarting Postgres....';
|
||||
$POSTGRES_BIN/pg_ctl -D $PGDATA restart
|
||||
}
|
||||
|
||||
@@ -84,4 +84,3 @@ function postgres_serverlog {
|
||||
# tail -500 $PGDATA/pg_log/`ls -Art $PGDATA/pg_log | tail -n 1` | less
|
||||
# }
|
||||
#
|
||||
|
||||
|
||||
Reference in New Issue
Block a user