1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/bin/sh RMDIR=/bin/rmdir COUCH_DBDIR=/var/db/couchdb COUCH_LOGDIR=/var/log/couchdb COUCH_RUNDIR=/var/run/couchdb if [ "$2" = "POST-DEINSTALL" ]; then for i in ${COUCH_RUNDIR} ${COUCH_DBDIR} ${COUCH_LOGDIR}; do ${RMDIR} ${i} 2>/dev/null done fi exit 0