summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkienan2018-06-20 13:29:19 (GMT)
committerHerman van Rink2018-06-20 13:29:19 (GMT)
commite5b578a8c9fb588eab5751201cd85d6fd03bb0b4 (patch)
tree74893400dce54763d8b27c89310dba31313824f5
parent923e3ed82dd8efac886f8ef96f8a63548bdeced1 (diff)
Issue #2979947 by kienan: Debian package for aegir3-hostmaster always asks for db_password during install
-rw-r--r--debian/aegir3-hostmaster.config5
1 files changed, 4 insertions, 1 deletions
diff --git a/debian/aegir3-hostmaster.config b/debian/aegir3-hostmaster.config
index c3a972d..05a8f19 100644
--- a/debian/aegir3-hostmaster.config
+++ b/debian/aegir3-hostmaster.config
@@ -40,7 +40,10 @@ db_input low aegir/db_host || true
db_input low aegir/db_user || true
# if we got here, it means aegir is not installed and we forgot the
# root password, ask for it again
-db_fset aegir/db_password "seen" "false" || true
+db_get aegir/db_password
+if [ -z "$RET" ] ; then
+ db_fset aegir/db_password "seen" "false" || true
+fi
db_input high aegir/db_password || true
# (taken from the webapps-common httpd functions)