debianize-mobilizon/debian/config

54 lines
1.1 KiB
Plaintext
Raw Normal View History

2024-01-14 12:27:41 +01:00
#!/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