From d04cf5f5a179f66734d3bb894d06de64c85342b0 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Sat, 24 Apr 2021 19:52:20 +0200 Subject: [PATCH] add the necessary template --- debian/openwebrx.config | 2 +- debian/openwebrx.templates | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/debian/openwebrx.config b/debian/openwebrx.config index 1f11e0c..95d2d18 100755 --- a/debian/openwebrx.config +++ b/debian/openwebrx.config @@ -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 diff --git a/debian/openwebrx.templates b/debian/openwebrx.templates index f69e47b..99a0543 100644 --- a/debian/openwebrx.templates +++ b/debian/openwebrx.templates @@ -13,4 +13,11 @@ 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". \ No newline at end of file + "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. \ No newline at end of file