18 lines
402 B
Plaintext
Raw Normal View History

2018-02-24 03:42:24 -07:00
#!/bin/sh -e
. /usr/share/debconf/confmodule
db_input high netsyms-business/apiurl || true
db_go || true
db_get netsyms-business/apiurl || true
APIURL=$RET || true
db_input high netsyms-business/apikey || true
db_go || true
db_get netsyms-business/apikey || true
APIKEY=$RET
mkdir -p /etc/netsyms-business
echo "{\"apiurl\":\"$APIURL\",\"apikey\":\"$APIKEY\"}" > /etc/netsyms-business/config.json