Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by David Kowis (31fd01824fc63c45617e1a300c3265adcf9448ee)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: David Kowis <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by David Kowis (31fd01824fc63c45617e1a300c3265adcf9448ee)
  • Date: Tue, 1 Jul 2008 21:33:50 -0500

GIT changes to master grimoire by David Kowis <dkowis AT shlrm.org>:

database/postgresql/CONFIGURE | 3 ---
database/postgresql/FINAL | 7 -------
database/postgresql/HISTORY | 9 +++++++++
database/postgresql/INSTALL | 16 +++++++++-------
4 files changed, 18 insertions(+), 17 deletions(-)

New commits:
commit 31fd01824fc63c45617e1a300c3265adcf9448ee
Author: David Kowis <dkowis AT shlrm.org>
Commit: David Kowis <dkowis AT shlrm.org>

postgresql: Made postgresql more SMGL-like. Removed the creation of the
default database directory. I believe that's an administrative task, as
it could
be placed differently, or multiple ones can be placed. I added messages
to the install file to help steer n00bs in the right direction.

diff --git a/database/postgresql/CONFIGURE b/database/postgresql/CONFIGURE
deleted file mode 100755
index d02ad91..0000000
--- a/database/postgresql/CONFIGURE
+++ /dev/null
@@ -1,3 +0,0 @@
-config_query_string PGSQL_DBPATH \
- "Setup the database location:" \
- $INSTALL_ROOT/var/lib/postgres/data
diff --git a/database/postgresql/FINAL b/database/postgresql/FINAL
deleted file mode 100755
index 6197a80..0000000
--- a/database/postgresql/FINAL
+++ /dev/null
@@ -1,7 +0,0 @@
-if [[ ! -e $PGSQL_DBPATH/postresql.conf ]]; then
- message "${MESSAGE_COLOR}"
- message "You need to run initdb and edit postgresql.conf manually."
- message "The PGDATA directory defaults to $PGSQL_DBPATH."
- message "Logs are written to $INSTALL_ROOT/var/log/postgres by default."
- message "${DEFAULT_COLOR}"
-fi
diff --git a/database/postgresql/HISTORY b/database/postgresql/HISTORY
index 0cec2a9..ab217ae 100644
--- a/database/postgresql/HISTORY
+++ b/database/postgresql/HISTORY
@@ -1,3 +1,12 @@
+2008-07-01 David Kowis <dkowis AT shlrm.org>
+ * CONFIGURE: DELETED!
+ * INSTALL: removed installing of folder. I removed it because it
doesn't fail
+ installing without creating any database directory. It's not the
spell
+ author's fault if you don't know how to set up postgresql. I added
some
+ messages to help remind people as to what they need to do. That
should
+ be a good compromise.
+ * FINAL: removed, as I covered that in the messages in INSTALL.
+
2008-06-19 Vlad Glagolev <stealth AT sourcemage.org>
* PREPARE, TRIGGERS, init.d/postgresql.conf: cleaned up
* DEPENDS: added optional deps: readline, libxml2 (with libxslt),
cleaned up
diff --git a/database/postgresql/INSTALL b/database/postgresql/INSTALL
index 2771a33..dbc2d97 100755
--- a/database/postgresql/INSTALL
+++ b/database/postgresql/INSTALL
@@ -11,17 +11,19 @@ if is_depends_enabled $SPELL libxml2; then
default_install
fi &&

-if [[ ! -d $PGSQL_DBPATH ]]; then
- install -vm 755 -o postgres -g postgres -d $PGSQL_DBPATH
-fi &&
-
touch $INSTALL_ROOT/var/log/postgres &&
chown postgres:postgres $INSTALL_ROOT/var/log/postgres &&

-if is_depends_enabled $SPELL openssl && ! [[ ! -e $PGSQL_DBPATH/server.crt
]]; then
+if is_depends_enabled $SPELL openssl; then
message "${MESSAGE_COLOR}"
message "Please place server key and certificate files server.key "
- message "and server.crt into $PGSQL_DBPATH/var/lib/postgres/data. See more
about"
+ message "and server.crt into /var/lib/postgres/data (by default). See more
about"
message "it at http://www.postgresql.org/docs/8.3/static/ssl-tcp.html";
message "${DEFAULT_COLOR}"
-fi
+fi &&
+
+message "${MESSAGE_COLOR}"
+message "Don't forget to set up your database path."
+message
"http://www.postgresql.org/docs/8.3/interactive/runtime-config-file-locations.html";
+message "Our initscripts have it as /var/lib/postgresql/data by default"
+message "${DEFAULT_COLOR}"



  • [SM-Commit] GIT changes to master grimoire by David Kowis (31fd01824fc63c45617e1a300c3265adcf9448ee), David Kowis, 07/01/2008

Archive powered by MHonArc 2.6.24.

Top of Page