debianize-mobilizon/debian/config
2024-01-14 15:32:19 +00:00

54 lines
1.1 KiB
Bash

#!/bin/sh
# Source debconf library.
. /usr/share/debconf/confmodule
# Choose a domain name
db_input high mobilizon/domain_name || true
db_go
db_get mobilizon/domain_name
if [ -z "$RET" -o "$RET" = " " ]; then
db_set mobilizon/domain_name "mobilizon.localhost.localdomain"
fi
# TCP port
db_input low mobilizon/listen_port || true
db_go
db_get mobilizon/listen_port
if [ -z "$RET" -o "$RET" = " " ]; then
db_set mobilizon/listen_port "4000"
fi
# DB hostname
db_input high mobilizon/db_host || true
db_go
db_get mobilizon/db_host
if [ -z "$RET" -o "$RET" = " " ]; then
db_set mobilizon/db_host "localhost"
fi
# DB name
db_input medium mobilizon/db_name || true
db_go
db_get mobilizon/db_name
if [ -z "$RET" -o "$RET" = " " ]; then
db_set mobilizon/db_name "mobilizon"
fi
# DB username
db_input high mobilizon/db_username || true
db_go
db_get mobilizon/db_username
if [ -z "$RET" -o "$RET" = " " ]; then
db_set mobilizon/db_username "mobilizon"
fi
## DB userpass
#db_input high mobilizon/db_userpass || true
#db_go
#db_get mobilizon/db_userpass
#if [ -z "$RET" -o "$RET" = " " ]; then
# db_set mobilizon/db_userpass ""
#fi