[ckan-changes] commit/ckan-debs-public: dread: Correct syntax for maintenance mode.

Bitbucket commits-noreply at bitbucket.org
Thu May 26 19:51:55 UTC 2011


1 new changeset in ckan-debs-public:

http://bitbucket.org/okfn/ckan-debs-public/changeset/ace6e637f835/
changeset:   r15:ace6e637f835
user:        dread
date:        2011-05-26 21:51:45
summary:     Correct syntax for maintenance mode.
affected #:  1 file (24 bytes)

--- a/ckan/DEBIAN/postinst	Thu May 26 20:44:21 2011 +0100
+++ b/ckan/DEBIAN/postinst	Thu May 26 20:51:45 2011 +0100
@@ -18,7 +18,7 @@
 if ! [ -f /etc/apache2/sites-available/${instance}.maint ] ; then
     # We have a maintence mode available
     echo "Putting CKAN into maintenance mode ..."
-    ckan-instance-maintenance on
+    ckan-instance-maintenance ${instance} on
 fi
 
 echo "Ensuring users and groups are set up correctly ..."
@@ -153,7 +153,7 @@
 
 # Make sure our instance is enabled
 echo "Bringing the dgu instance out of maintenance mode ..."
-ckan-instance-maintenance off
+ckan-instance-maintenance ${instance} off
 
 # Restart Apache so it is aware of any changes
 echo "Restarting apache ..."

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