[Pkg-nagios-changes] [SCM] Debian packaging of icinga-web branch, master, updated. debian/1.7.1-1-3-g2e51e4f

Markus Frosch markus at lazyfrosch.de
Tue Jun 26 08:02:10 UTC 2012


The following commit has been merged in the master branch:
commit 2e51e4f0dc3ee40b938c8dd1b3273be996b7af1d
Author: Markus Frosch <markus at lazyfrosch.de>
Date:   Tue Jun 26 08:49:18 2012 +0200

    added template to warn user that the root password for web cannot be set when db config is missing

diff --git a/debian/icinga-web.postinst b/debian/icinga-web.postinst
index c66f666..e495492 100644
--- a/debian/icinga-web.postinst
+++ b/debian/icinga-web.postinst
@@ -112,6 +112,8 @@ setpassword() {
     
     # load database connection info
     if [ ! -f /etc/dbconfig-common/icinga-web.conf ]; then
+        db_fset icinga-web/rootpassword-dbconfig-missing seen false || true
+        db_input high icinga-web/rootpassword-dbconfig-missing || true
         return
     fi
     source /etc/dbconfig-common/icinga-web.conf
diff --git a/debian/icinga-web.templates b/debian/icinga-web.templates
index 27ef931..f4caf7f 100644
--- a/debian/icinga-web.templates
+++ b/debian/icinga-web.templates
@@ -31,3 +31,12 @@ Type: error
 _Description: Password input error
  The two passwords you entered were not the same. Please try again.
 
+Template: icinga-web/rootpassword-dbconfig-missing
+Type: error
+_Description: Database configuration missing
+ The database configuration for Icinga Web is missing.
+ .
+ Your root password for the web interface can not be configured automatically.
+ .
+ The default password, which is included in the database schema is "password".
+
diff --git a/debian/po/templates.pot b/debian/po/templates.pot
index 13d5894..102b7e8 100644
--- a/debian/po/templates.pot
+++ b/debian/po/templates.pot
@@ -8,7 +8,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: icinga-web\n"
 "Report-Msgid-Bugs-To: icinga-web at packages.debian.org\n"
-"POT-Creation-Date: 2012-06-19 08:54+0200\n"
+"POT-Creation-Date: 2012-06-26 08:47+0200\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
 "Language-Team: LANGUAGE <LL at li.org>\n"
@@ -98,3 +98,30 @@ msgstr ""
 #: ../icinga-web.templates:4001
 msgid "The two passwords you entered were not the same. Please try again."
 msgstr ""
+
+#. Type: error
+#. Description
+#: ../icinga-web.templates:5001
+msgid "Database configuration missing"
+msgstr ""
+
+#. Type: error
+#. Description
+#: ../icinga-web.templates:5001
+msgid "The database configuration for Icinga Web is missing."
+msgstr ""
+
+#. Type: error
+#. Description
+#: ../icinga-web.templates:5001
+msgid ""
+"Your root password for the web interface can not be configured automatically."
+msgstr ""
+
+#. Type: error
+#. Description
+#: ../icinga-web.templates:5001
+msgid ""
+"The default password, which is included in the database schema is \"password"
+"\"."
+msgstr ""

-- 
Debian packaging of icinga-web



More information about the Pkg-nagios-changes mailing list