From 1fed499b7feaa19895224cb5f7d6381b45244b6d Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Sat, 6 Feb 2021 18:59:01 +0100 Subject: [PATCH] create initial user in postinst script --- debian/openwebrx.postinst | 3 +++ 1 file changed, 3 insertions(+) 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