wok-6.x rev 16682
couchdb: create /var/run/couchdb in /etc/init.d/couchdb
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon May 19 07:53:54 2014 +0000 (2014-05-19) |
parents | 0d8a1a3edc72 |
children | 2de96b17bda9 |
files | couchdb/receipt |
line diff
1.1 --- a/couchdb/receipt Sun May 18 20:24:07 2014 +0000 1.2 +++ b/couchdb/receipt Mon May 19 07:53:54 2014 +0000 1.3 @@ -42,8 +42,9 @@ 1.4 cp -a $install/etc/default/couchdb $fs/etc/couchdb 1.5 cp -a $install/etc/init.d $fs/etc 1.6 cp -a $install/etc/logrotate.d $fs/etc 1.7 - sed -i "s|/etc/default/couchdb|/etc/couchdb/couchdb|" \ 1.8 - $fs/etc/init.d/couchdb 1.9 + sed -i -e 's|/etc/default/couchdb|/etc/couchdb/couchdb|' \ 1.10 + -e 's,.*case,[ -d /var/run/couchdb ] || mkdir -p /var/run/couchdb\n&,' \ 1.11 + $fs/etc/init.d/couchdb 1.12 } 1.13 1.14 # Pre install commands for tazpkg