case $1 in
configure)
- mkdir -p /var/lib/couchdb
+ test -d /var/log/couchdb || mkdir -p /var/log/couchdb
+ test -d /var/lib/couchdb || mkdir -p /var/lib/couchdb
chown -R couchdb:couchdb /var/lib/couchdb
chown -R couchdb:couchdb /var/log/couchdb
chmod -R 0770 /var/lib/couchdb
The test is unnecessary, mkdir -p already implies this.
Also, the attached debdiff includes another patch for a bug that's marked private. Please unmark the bug as private (if it doesn't contain information that needs to be private), or create a public bug report that's a suitable reference for the upload changelog.
@@ -8,7 +8,8 @@
case $1 in
configure)
- mkdir -p /var/lib/couchdb
+ test -d /var/log/couchdb || mkdir -p /var/log/couchdb
+ test -d /var/lib/couchdb || mkdir -p /var/lib/couchdb
chown -R couchdb:couchdb /var/lib/couchdb
chown -R couchdb:couchdb /var/log/couchdb
chmod -R 0770 /var/lib/couchdb
The test is unnecessary, mkdir -p already implies this.
Also, the attached debdiff includes another patch for a bug that's marked private. Please unmark the bug as private (if it doesn't contain information that needs to be private), or create a public bug report that's a suitable reference for the upload changelog.