Removed trailing whitespaces

This commit is contained in:
Ira Abramov
2020-03-10 10:16:02 +02:00
committed by Noah Gorny
parent 3f318914fd
commit c42e3e8b21
28 changed files with 140 additions and 146 deletions

View File

@@ -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
# }
#