# adapted from preinst/postinst from the original package post_install() { # create cb user and group getent group couchbase >/dev/null || \ groupadd -r couchbase || exit 1 getent passwd couchbase >/dev/null || \ useradd -r -g couchbase -d /opt/couchbase -s /usr/sbin/nologin \ -c "couchbase system user" couchbase || exit 1 chown -R couchbase:couchbase /opt/couchbase cat <&1 }