summaryrefslogtreecommitdiffstats
path: root/Services/postgres/postgres_run.sh
diff options
context:
space:
mode:
authorstartxfr <clarue@startx.fr>2014-11-20 09:34:55 +0100
committerstartxfr <clarue@startx.fr>2014-11-20 09:34:55 +0100
commit910a26141f16336c96e304ebe850a4e5a0f97f95 (patch)
treebc1eef413af3a0c1b7bd3eeda7ceafc8d6ed87b2 /Services/postgres/postgres_run.sh
parent7f7d7e70ec819dbc4f1d88e29420e59549add0a9 (diff)
downloadphpmyadmin-910a26141f16336c96e304ebe850a4e5a0f97f95.tar.gz
phpmyadmin-910a26141f16336c96e304ebe850a4e5a0f97f95.tar.bz2
phpmyadmin-910a26141f16336c96e304ebe850a4e5a0f97f95.tar.xz
phpmyadmin-910a26141f16336c96e304ebe850a4e5a0f97f95.zip
modif des readme de chaque container pour etre plus expressif
Diffstat (limited to 'Services/postgres/postgres_run.sh')
-rw-r--r--Services/postgres/postgres_run.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/Services/postgres/postgres_run.sh b/Services/postgres/postgres_run.sh
new file mode 100644
index 0000000..dfbc232
--- /dev/null
+++ b/Services/postgres/postgres_run.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+#change the password
+service postgresql start >/dev/null 2>&1
+if [ ! -f /.postgres_pass_modified ]; then
+ /postgres_modify_pass.sh
+fi
+service postgresql stop >/dev/null 2>&1
+
+#start PostgreSQL
+sudo -u postgres /usr/lib/postgresql/9.3/bin/postgres -D /var/lib/postgresql/9.3/main -c config_file=/etc/postgresql/9.3/main/postgresql.conf
+
+
+exec /usr/libexec/mysqld \ No newline at end of file