[ckan-changes] commit/ckan-debs-public: jame... at okfn.org: Trying a new approach to logging

Bitbucket commits-noreply at bitbucket.org
Wed Jun 22 19:04:15 UTC 2011


1 new changeset in ckan-debs-public:

http://bitbucket.org/okfn/ckan-debs-public/changeset/527cbce965d3/
changeset:   527cbce965d3
user:        jame... at okfn.org
date:        2011-06-22 21:04:04
summary:     Trying a new approach to logging
affected #:  1 file (0 bytes)

--- a/ckan-common/usr/lib/ckan/common.sh	Wed Jun 22 18:22:42 2011 +0100
+++ b/ckan-common/usr/lib/ckan/common.sh	Wed Jun 22 20:04:04 2011 +0100
@@ -82,8 +82,7 @@
         INSTANCE=$1
         if ! [ -f /etc/ckan/$0/who.ini ] ; then
             cp -n /usr/share/pyshared/ckan/config/who.ini /etc/ckan/${INSTANCE}/who.ini
-            sed -e "s,ckan.log,/var/log/ckan/${INSTANCE}/${INSTANCE}.log," \
-                -e "s,%(here)s,/var/lib/ckan/${INSTANCE}," \
+            sed -e "s,%(here)s,/var/lib/ckan/${INSTANCE}," \
                 -i /etc/ckan/${INSTANCE}/who.ini
         fi
     fi
@@ -108,6 +107,7 @@
                 -e "s,^\(who.config_file\)[ =].*,\1 = /etc/ckan/${INSTANCE}/who.ini," \
                 -e "s,%(here)s/ckan.log,/var/log/ckan/${INSTANCE}/${INSTANCE}.log," \
                 -e "s,^\(sqlalchemy.url\)[ =].*,\1 = postgresql://${INSTANCE}:${password}@localhost/${INSTANCE}," \
+                -e "s,ckan.log,/var/log/ckan/${INSTANCE}/${INSTANCE}.log," \
                 -i /etc/ckan/${INSTANCE}/${INSTANCE}.ini
         fi
     fi

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