add the necessary template

This commit is contained in:
Jakob Ketterl 2021-04-24 19:52:20 +02:00
parent b7e38960c0
commit d04cf5f5a1
2 changed files with 9 additions and 2 deletions

View File

@ -1,7 +1,7 @@
#!/bin/sh -ex
. /usr/share/debconf/confmodule
db_get openwebrx/admin_user_configured || true
db_get openwebrx/admin_user_configured
if [ "${RET}" != true ]; then
db_input high openwebrx/admin_user_password || true
db_go

View File

@ -14,3 +14,10 @@ Description: OpenWebRX "admin" user password:
You can also use the "openwebrx admin" command to create, delete or manage
existing users. More information is available in by running the command
"openwebrx admin --help".
Template: openwebrx/admin_user_configured
Type: boolean
Default: false
Description: OpenWebRX "admin" user previously configured
Marker used internally by the config scripts to remember if an admin user has
been created.