#!/bin/sh -e case "$1" in install|upgrade) # Create the solr user adduser --system --shell /bin/bash --group --disabled-password --home /var/lib/masterkey/lui lui-solr # Automatically added by dh_installinit if [ -x "/etc/init.d/masterkey-lui-zookeeper" ]; then invoke-rc.d masterkey-lui-zookeeper stop || exit $? fi # End automatically added section ;; abort-upgrade) ;; *) echo "preinst called with unknown argument '$1'" >&2 exit 1 ;; esac exit 0