Skip to content
Browse files

Initial pgtune.

  • Loading branch information...
1 parent e8395fe commit 20e101cf7fcb9a7bbeda2bc6166014b2b204b30e @wayneeseguin wayneeseguin committed
View
0 pgtune/config/checksum
No changes.
View
3 pgtune/config/defaults
@@ -0,0 +1,3 @@
+base_url=http://pgfoundry.org/frs/download.php/2449
+version=0.9.3
+archive_format=tar.gz
View
23 pgtune/shell/functions
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+pgtune_configure()
+{
+ : # nothing to do, pgtune is a script.
+}
+
+pgtune_build()
+{
+ : # nothing to do, pgtune is a script.
+}
+
+pgtune_install()
+{
+ file copy from "${source_path}/pgtune" to "${install_path}/bin/pgtune"
+
+ paths create "${install_path}/bin"
+
+ log "#installing ${package_name} ${package_version}...\n"
+
+ install -b "pgtune" "${install_path}/bin/pgtune"
+}
+
View
0 pgtune/shell/includes
No changes.
View
0 pgtune/shell/initialize
No changes.
View
12 postgresql/shell/functions
@@ -80,7 +80,8 @@ postgresql_defaults()
fi
if [[ ${service_user} == "postgresql" ]]
- then service_user="postgres" ; fi
+ then service_user="postgres"
+ fi
config read file "defaults" key "version" prefix "package" from "postgresql"
service_data_path="/var/db/postgresql/${package_version}/data"
@@ -176,10 +177,12 @@ postgresql_database_initialize()
if user is root
then
if ! su - "${service_user}" -c "${_command}"
- then __sm.log.warn "initdb failed, command:\n${_command}" ; fi
+ then __sm.log.warn "initdb failed, command:\n${_command}"
+ fi
else
if ! eval "${_command}"
- then __sm.log.warn "initdb failed, command:\n${_command}" ; fi
+ then __sm.log.warn "initdb failed, command:\n${_command}"
+ fi
fi
fi
@@ -188,7 +191,8 @@ postgresql_database_initialize()
for _dir in archives wal
do
if ! path exists "${service_data_path}/${_dir}"
- then paths create "${service_data_path}/${_dir}" ; fi
+ then paths create "${service_data_path}/${_dir}"
+ fi
done
fi

0 comments on commit 20e101c

Please sign in to comment.
Something went wrong with that request. Please try again.