Modifications : etc/postgresql/9.1 -> etc/postgresql/9.4
[lhc/ateliers.git] / etc / sv / postgres / run
index bf8c49e..1a14a0a 100755 (executable)
@@ -5,12 +5,13 @@ home="/home/postgresql"
 
 install -d -m 710 -o "$sv" -g "$sv"-data \
  /run/postgresql
 
 install -d -m 710 -o "$sv" -g "$sv"-data \
  /run/postgresql
+cd /run/postgresql
 
 exec /usr/bin/chpst \
  -u "$sv":"$sv":"$sv"-data \
 
 exec /usr/bin/chpst \
  -u "$sv":"$sv":"$sv"-data \
- /usr/lib/postgresql/9.1/bin/postgres \
- -D "$home"/data \
+ /usr/lib/postgresql/9.4/bin/postgres \
+ -D "$home"/data/9.4 \
  -e \
  -e \
- -c config_file=/etc/postgresql/9.1/main/postgresql.conf \
+ -c config_file=/etc/postgresql/9.4/main/postgresql.conf \
  -l \
  -p 5432
  -l \
  -p 5432