new mechanism doesn't require any dummy values in the db

This commit is contained in:
Jakob Ketterl 2021-02-18 16:14:15 +01:00
parent eb8b8c4a5a
commit a750726459

View File

@ -17,10 +17,10 @@ case "$1" in
# create initial openwebrx user
db_get openwebrx/admin_user_password
if [ ! -z "${RET}" ] && [ "${RET}" != "__DONE__" ]; then
if [ ! -z "${RET}" ]; then
OWRX_PASSWORD="${RET}" openwebrx-admin --noninteractive adduser admin
# remove actual password from debconf database, but leave a marker
db_set openwebrx/admin_user_password "__DONE__"
# remove actual password from debconf database
db_unregister openwebrx/admin_user_password
fi
;;
*)