[ckan-changes] commit/ckan-debs-public: jame... at okfn.org: Putting back in the need for a password when creating the config file

Bitbucket commits-noreply at bitbucket.org
Mon Jun 27 13:21:40 UTC 2011


1 new changeset in ckan-debs-public:

http://bitbucket.org/okfn/ckan-debs-public/changeset/18ea3456173c/
changeset:   18ea3456173c
user:        jame... at okfn.org
date:        2011-06-27 15:21:30
summary:     Putting back in the need for a password when creating the config file
affected #:  1 file (74 bytes)

--- a/ckan-common/usr/lib/ckan/common.sh	Mon Jun 27 14:13:44 2011 +0100
+++ b/ckan-common/usr/lib/ckan/common.sh	Mon Jun 27 14:21:30 2011 +0100
@@ -90,12 +90,13 @@
 
 ckan_create_config_file () {
     local INSTANCE password
-    if [ "X$1" = "X" ] ; then
-        echo "ERROR: call the function create_config_file function with an INSTANCE name e.g." 
-        echo "       dgu"
+    if [ "X$1" = "X" ] || [ "X$2" = "X" ] ; then
+        echo "ERROR: call the function create_config_file function with an INSTANCE name, and a password for postgresql e.g."
+        echo " dgu 1U923hjkh8"
         exit 1
     else
         INSTANCE=$1
+        password=$2
         # Create an install settings file if it doesn't exist
         if [ -f /etc/ckan/${INSTANCE}/${INSTANCE}.ini ] ; then
             mv /etc/ckan/${INSTANCE}/${INSTANCE}.ini "/etc/ckan/${INSTANCE}/${INSTANCE}.ini.`date +%F_%T`.bak"

Repository URL: https://bitbucket.org/okfn/ckan-debs-public/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.




More information about the ckan-changes mailing list