[Pkg-nagios-changes] [SCM] debian packaging of icinga(-core) branch, master, updated. debian/1.9.1-2-12-gde82eae

Alexander Wirt formorer at debian.org
Fri Jul 19 19:24:07 UTC 2013


The following commit has been merged in the master branch:
commit de82eae48a4b586ea7f3a45d6669fd2fb692560f
Author: Alexander Wirt <formorer at debian.org>
Date:   Thu Jul 18 22:47:44 2013 +0200

    Don't give the htpasswd password on the commandline

diff --git a/debian/icinga-cgi.postinst b/debian/icinga-cgi.postinst
index 9e5db37..8948b93 100644
--- a/debian/icinga-cgi.postinst
+++ b/debian/icinga-cgi.postinst
@@ -71,7 +71,7 @@ case "$1" in
 	# XXX there's no way of setting the pw w/out giving it on the cmdline? wtf?
 	if [ -n "$admpass" ]; then
 		touch "$htpw"
-		htpasswd -b "$htpw" icingaadmin "$admpass"
+		echo "$admpass" | htpasswd -i "$htpw" icingaadmin
 	fi
 
 	# everything went well, so now let's reset the password

-- 
debian packaging of icinga(-core)



More information about the Pkg-nagios-changes mailing list