From 73b84237e1a1b204ee4d1cc248b99f7655067fd3 Mon Sep 17 00:00:00 2001 From: rjawor Date: Wed, 16 Dec 2015 09:58:42 +0100 Subject: [PATCH] current user for pgbouncer --- CMakeLists.txt | 1 + upstart/cmake_stubs/pgbouncer.conf.in | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f34d500..5038610 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,6 +12,7 @@ set(BASE_TARGETS concordia-server) set (STOP_WORDS_ENABLED "false") +set (UNIX_USER $ENV{USER}) # ================================================ # Config diff --git a/upstart/cmake_stubs/pgbouncer.conf.in b/upstart/cmake_stubs/pgbouncer.conf.in index 3b40730..0224a49 100644 --- a/upstart/cmake_stubs/pgbouncer.conf.in +++ b/upstart/cmake_stubs/pgbouncer.conf.in @@ -15,6 +15,6 @@ respawn limit 10 30 expect fork script - exec pgbouncer -u rafalj @concordia-server_SOURCE_DIR@/db/pgbouncer.ini & + exec pgbouncer -u @UNIX_USER@ @concordia-server_SOURCE_DIR@/db/pgbouncer.ini & sleep 4 end script