create initial user in postinst script
This commit is contained in:
parent
d99669b3aa
commit
1fed499b7f
3
debian/openwebrx.postinst
vendored
3
debian/openwebrx.postinst
vendored
@ -12,6 +12,9 @@ case "$1" in
|
|||||||
# create OpenWebRX data directory and set the correct permissions
|
# create OpenWebRX data directory and set the correct permissions
|
||||||
if [ ! -d "${OWRX_DATADIR}" ] && [ ! -L "${OWRX_DATADIR}" ]; then mkdir "${OWRX_DATADIR}"; fi
|
if [ ! -d "${OWRX_DATADIR}" ] && [ ! -L "${OWRX_DATADIR}" ]; then mkdir "${OWRX_DATADIR}"; fi
|
||||||
chown -R "${OWRX_USER}". ${OWRX_DATADIR}
|
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
|
echo "postinst called with unknown argument '$1'" 1>&2
|
||||||
|
Loading…
Reference in New Issue
Block a user