File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -372,13 +372,17 @@ Install `postgresql93-server` and the `postgreqsql93-devel` libraries:
372
372
373
373
yum install postgresql93-server postgresql93-devel
374
374
375
- Rename the service script:
375
+ The executables are installed in ` /usr/pgsql-9.3/bin/ ` . In order to be able to run them,
376
+ you have to either add this path to your ` $PATH ` or make symlinks. Here, we will make
377
+ symlinks to the commands used by GitLab:
376
378
377
- mv /etc/init.d/{postgresql-9.3,postgresql}
379
+ ln -s /usr/pgsql-9.3/bin/pg_dump /usr/bin/pg_dump
380
+ ln -s /usr/pgsql-9.3/bin/pg_restore /usr/bin/pg_restore
381
+ ln -s /usr/pgsql-9.3/bin/psql /usr/bin/psql
378
382
379
- Make a symlink for ` pg_dump ` otherwise backup will fail :
383
+ Rename the service script :
380
384
381
- ln -s /usr/pgsql -9.3/bin/pg_dump /usr/bin/pg_dump
385
+ mv /etc/init.d/{postgresql -9.3,postgresql}
382
386
383
387
Initialize the database:
384
388
@@ -392,6 +396,7 @@ Start the service and configure service to start on boot:
392
396
Configure the database user and password:
393
397
394
398
su - postgres
399
+ export PATH=$PATH:/usr/pgsql-9.3/bin/
395
400
psql -d template1
396
401
397
402
psql (8.4.20)
You can’t perform that action at this time.
0 commit comments