always remove password, no matter what the value

This commit is contained in:
Jakob Ketterl 2021-02-18 16:14:45 +01:00
parent a750726459
commit 74aea63b9b

View File

@ -19,9 +19,9 @@ case "$1" in
db_get openwebrx/admin_user_password db_get openwebrx/admin_user_password
if [ ! -z "${RET}" ]; then if [ ! -z "${RET}" ]; then
OWRX_PASSWORD="${RET}" openwebrx-admin --noninteractive adduser admin OWRX_PASSWORD="${RET}" openwebrx-admin --noninteractive adduser admin
# remove actual password from debconf database
db_unregister openwebrx/admin_user_password
fi fi
# remove password from debconf database
db_unregister openwebrx/admin_user_password
;; ;;
*) *)
echo "postinst called with unknown argument '$1'" 1>&2 echo "postinst called with unknown argument '$1'" 1>&2