new mechanism doesn't require any dummy values in the db
This commit is contained in:
parent
eb8b8c4a5a
commit
a750726459
6
debian/openwebrx.postinst
vendored
6
debian/openwebrx.postinst
vendored
@ -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
|
||||
;;
|
||||
*)
|
||||
|
Loading…
Reference in New Issue
Block a user