diff options
| author | Bruno Cesar Ribas <brunoribas@gmail.com> | 2018-08-24 02:25:23 +0000 |
|---|---|---|
| committer | Bruno Cesar Ribas <brunoribas@gmail.com> | 2018-08-24 02:25:23 +0000 |
| commit | 9f05ae47d104864162f264fe6415d73797e039bd (patch) | |
| tree | 6da325f5ec1bc8177ce55a7b03bf6fc533f64679 /debian/boca-common.postinst | |
| parent | 5565fc2b57fd876f696e9ac5e8f9ba49d1e99eb9 (diff) | |
| download | boca-9f05ae47d104864162f264fe6415d73797e039bd.tar.gz boca-9f05ae47d104864162f264fe6415d73797e039bd.zip | |
d/boca-{common,db}.postinst: Avoid asking same question on upgrade
From now on the user must remove lines containing 'bdserver' or 'bdcreated in
/etc/boca.conf in order to modify the DB password and the DB hostname.
Signed-off-by: Bruno Cesar Ribas <brunoribas@gmail.com>
Diffstat (limited to 'debian/boca-common.postinst')
| -rw-r--r-- | debian/boca-common.postinst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/debian/boca-common.postinst b/debian/boca-common.postinst index f6c61cd..d28de8a 100644 --- a/debian/boca-common.postinst +++ b/debian/boca-common.postinst @@ -8,6 +8,13 @@ priority=high case "$1" in configure|reconfigure) + if [[ -e "/etc/boca.conf" ]]; then + . /etc/boca.conf + if [[ "$bdserver" != "" ]]; then + echo "If you want to reset DB configuration, please unset \"bdserver\" in /etc/boca.conf" + exit 0 + fi + fi db_input high boca-common/dbhost || true db_go || true |