Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 354056 Details for
Bug 468868
dev-db/postgresql-server: add systemd unit
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
postgresql-check-db-dir
postgresql-check-db-dir (text/plain), 1.01 KB, created by
Alexander Tsoy
on 2013-07-24 00:59:25 UTC
(
hide
)
Description:
postgresql-check-db-dir
Filename:
MIME Type:
Creator:
Alexander Tsoy
Created:
2013-07-24 00:59:25 UTC
Size:
1.01 KB
patch
obsolete
>#!/bin/sh ># Copyright 1999-2013 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >eerror() { > echo "$@" >&2 >} > ># Check that DATA_DIR has been set >if [ -z ${DATA_DIR} ] ; then > eerror "DATA_DIR not set" > exit 1 >fi > ># Check that DATA_DIR exists >if [ ! -d ${DATA_DIR} ] ; then > eerror "Directory not found: ${DATA_DIR}" > eerror "HINT: Ensure that DATA_DIR points to the right path." > eerror "HINT: Or perhaps you need to create the database cluster:" > eerror " emerge --config dev-db/postgresql-server:@SLOT@" > exit 1 >fi > ># Check for the existence of PostgreSQL's config files, and set the ># proper mode and ownership. ># Only three files should be checked as potentially other files ># may be in PGDATA that should not be touched. >for file in postgresql pg_hba pg_ident ; do > file="${PGDATA%/}/${file}.conf" > if [ ! -f ${file} ] ; then > eerror "${file} not found" > eerror "HINT: mv ${DATA_DIR%/}/*.conf ${PGDATA}" > exit 1 > fi >done
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 468868
:
347598
|
347600
|
347602
|
347604
|
354046
|
354048
|
354050
| 354056 |
354132