Skip to content

Commit

Permalink
Merge pull request #2042 from phillxnet/2041_openSUSE_don't_rely_on_P…
Browse files Browse the repository at this point in the history
…GDATA_env_var

[openSUSE] don't rely on PGDATA env var. Fixes #2041
  • Loading branch information
phillxnet authored May 20, 2019
2 parents 8384681 + fbacd91 commit 1102e28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rockstor/scripts/initrock.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ def main():
if os.path.isfile('/usr/bin/initdb'):
logger.debug('running generic initdb on {}'.format(pg_data))
run_command(
['su', '-', 'postgres', '-c', '/usr/bin/initdb', pg_data])
['su', '-', 'postgres', '-c', '/usr/bin/initdb -D {}'.format(pg_data)])
logging.info('Done.')
run_command([SYSCTL, 'restart', 'postgresql'])
run_command([SYSCTL, 'status', 'postgresql'])
Expand Down

0 comments on commit 1102e28

Please sign in to comment.