From 910a26141f16336c96e304ebe850a4e5a0f97f95 Mon Sep 17 00:00:00 2001 From: startxfr Date: Thu, 20 Nov 2014 09:34:55 +0100 Subject: modif des readme de chaque container pour etre plus expressif --- Services/postgres/postgres_run.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Services/postgres/postgres_run.sh (limited to 'Services/postgres/postgres_run.sh') 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 -- cgit v1.2.3