install.pgsql: ni initdb, ni start
This commit is contained in:
parent
8a6cd4ad08
commit
d353f4d155
|
@ -6,14 +6,6 @@ echo "##"
|
|||
|
||||
cd /tmp
|
||||
|
||||
if [ ! -d /var/lib/pgsql/data/base/ ]; then
|
||||
echo "initialisation postgresql"
|
||||
/sbin/service postgresql initdb
|
||||
fi
|
||||
|
||||
echo "demarrage de postgresql"
|
||||
/sbin/service postgresql start
|
||||
|
||||
if ! sudo -u postgres psql -c \\l | grep -q template_postgis; then
|
||||
echo " creation template postgis"
|
||||
sudo -u postgres createdb -E UTF8 template_postgis
|
||||
|
|
Reference in New Issue