mirror of
https://github.com/ha7ilm/openwebrx.git
synced 2026-03-20 03:44:39 +01:00
fix debconf password questions
This commit is contained in:
parent
518588885c
commit
3122077603
2
debian/openwebrx.config
vendored
2
debian/openwebrx.config
vendored
|
|
@ -2,5 +2,5 @@
|
|||
|
||||
. /usr/share/debconf/confmodule
|
||||
|
||||
db_input medium openwebrx/admin_user_password
|
||||
db_input medium openwebrx/admin_user_password || true
|
||||
db_go
|
||||
|
|
|
|||
6
debian/openwebrx.postinst
vendored
6
debian/openwebrx.postinst
vendored
|
|
@ -17,11 +17,11 @@ case "$1" in
|
|||
|
||||
# create initial openwebrx user
|
||||
db_get openwebrx/admin_user_password
|
||||
if [ "${RET}" != "__DONE__" ]; then
|
||||
if [ ! -z "${RET}" ] && [ "${RET}" != "__DONE__" ]; then
|
||||
OWRX_PASSWORD="${RET}" openwebrx-admin --noninteractive --silent adduser admin
|
||||
# remove actual password from debconf database, but leave a marker
|
||||
db_set openwebrx/admin_user_password "__DONE__"
|
||||
fi
|
||||
# remove actual password from debconf database, but leave a marker
|
||||
db_set openwebrx/admin_user_password "__DONE__"
|
||||
;;
|
||||
*)
|
||||
echo "postinst called with unknown argument '$1'" 1>&2
|
||||
|
|
|
|||
Loading…
Reference in a new issue