# HG changeset patch # User Pascal Bellard # Date 1400486034 0 # Node ID b9c6c8240bbac837374d3a4d0510b95a08523494 # Parent 0d8a1a3edc7202e79b432ba049c6d61e2cd90cc8 couchdb: create /var/run/couchdb in /etc/init.d/couchdb diff -r 0d8a1a3edc72 -r b9c6c8240bba couchdb/receipt --- a/couchdb/receipt Sun May 18 20:24:07 2014 +0000 +++ b/couchdb/receipt Mon May 19 07:53:54 2014 +0000 @@ -42,8 +42,9 @@ cp -a $install/etc/default/couchdb $fs/etc/couchdb cp -a $install/etc/init.d $fs/etc cp -a $install/etc/logrotate.d $fs/etc - sed -i "s|/etc/default/couchdb|/etc/couchdb/couchdb|" \ - $fs/etc/init.d/couchdb + sed -i -e 's|/etc/default/couchdb|/etc/couchdb/couchdb|' \ + -e 's,.*case,[ -d /var/run/couchdb ] || mkdir -p /var/run/couchdb\n&,' \ + $fs/etc/init.d/couchdb } # Pre install commands for tazpkg