diff --git a/debian/openwebrx.postinst b/debian/openwebrx.postinst index fdb757f..7220378 100755 --- a/debian/openwebrx.postinst +++ b/debian/openwebrx.postinst @@ -12,6 +12,9 @@ case "$1" in # create OpenWebRX data directory and set the correct permissions if [ ! -d "${OWRX_DATADIR}" ] && [ ! -L "${OWRX_DATADIR}" ]; then mkdir "${OWRX_DATADIR}"; fi chown -R "${OWRX_USER}". ${OWRX_DATADIR} + + # create initial openwebrx user + openwebrx-admin adduser --noninteractive --silent --user admin ;; *) echo "postinst called with unknown argument '$1'" 1>&2