diff options
author | Palle Girgensohn <girgen@FreeBSD.org> | 2018-02-08 17:38:36 +0000 |
---|---|---|
committer | Palle Girgensohn <girgen@FreeBSD.org> | 2018-02-08 17:38:36 +0000 |
commit | 955b7d13bc3c846c8db5252aba9551900f2bcd5a (patch) | |
tree | d01da9b8d4a814953d381a2a12a15e65949b0e1a /databases/postgresql93-server/files/postgresql.in | |
parent | a02d810ddf2142464912bba35d6ba99ff2dc2599 (diff) | |
download | ports-955b7d13bc3c846c8db5252aba9551900f2bcd5a.tar.gz ports-955b7d13bc3c846c8db5252aba9551900f2bcd5a.zip |
Notes
Diffstat (limited to 'databases/postgresql93-server/files/postgresql.in')
-rw-r--r-- | databases/postgresql93-server/files/postgresql.in | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/databases/postgresql93-server/files/postgresql.in b/databases/postgresql93-server/files/postgresql.in index b6724571bd29..f6ea340f7f0f 100644 --- a/databases/postgresql93-server/files/postgresql.in +++ b/databases/postgresql93-server/files/postgresql.in @@ -50,6 +50,8 @@ status_cmd="postgresql_command status" initdb_cmd="postgresql_initdb" +su_cmd="/usr/bin/su" + if [ -n "$2" ]; then profile="$2" if [ "x${postgresql_profiles}" != "x" ]; then @@ -103,12 +105,12 @@ command_args="-D ${postgresql_data} ${postgresql_flags}" postgresql_command() { - su -l ${postgresql_user} -c "exec ${command} ${command_args} ${rc_arg}" + ${su_cmd} -l ${postgresql_user} -c "exec ${command} ${command_args} ${rc_arg}" } postgresql_initdb() { - su -l -c ${postgresql_class} ${postgresql_user} -c "exec %%PREFIX%%/bin/initdb ${postgresql_initdb_flags} -D ${postgresql_data} -U ${postgresql_user}" + ${su_cmd} -l -c ${postgresql_class} ${postgresql_user} -c "exec %%PREFIX%%/bin/initdb ${postgresql_initdb_flags} -D ${postgresql_data} -U ${postgresql_user}" } run_rc_command "$1" |