Hello community, here is the log from the commit of package icinga for openSUSE:12.2 checked in at 2012-08-09 17:55:37 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:12.2/icinga (Old) and /work/SRC/openSUSE:12.2/.icinga.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "icinga", Maintainer is "" Changes: -------- --- /work/SRC/openSUSE:12.2/icinga/icinga.changes 2012-06-25 15:35:28.000000000 +0200 +++ /work/SRC/openSUSE:12.2/.icinga.new/icinga.changes 2012-08-09 17:55:58.000000000 +0200 @@ -1,0 +2,5 @@ +Mon Jul 30 08:26:49 UTC 2012 - [email protected] + +- fixed icinga-create_mysqldb.sh - it granted icinga access to all dbs - so please check the permissions of your mysql icinga user + +------------------------------------------------------------------- New: ---- icinga-fix-create_mysqldb.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ icinga.spec ++++++ --- /var/tmp/diff_new_pack.movO6P/_old 2012-08-09 17:55:58.000000000 +0200 +++ /var/tmp/diff_new_pack.movO6P/_new 2012-08-09 17:55:58.000000000 +0200 @@ -24,13 +24,13 @@ Name: icinga Version: 1.6.1 -Release: 2 -License: GPL-2.0 +Release: 0 # Macro that print mesages to syslog at package (un)install time %define nnmmsg logger -t %{name}/rpm Summary: Host/service/network monitoring program -Url: http://www.icinga.org/ +License: GPL-2.0 Group: System/Monitoring +Url: http://www.icinga.org/ Source0: %{name}-%{version}.tar.gz Source1: rc%{name} Source2: rcido2db @@ -44,6 +44,8 @@ Source12: htpasswd.users # PATCH-FIX-OPENSUSE icinga-add-ifdefine-to-apache.patch Patch0: icinga-add-ifdefine-to-apache.patch +# PATCH-FIX-OPENSUSE icinga-fix-create_mysqldb.patch +Patch1: icinga-fix-create_mysqldb.patch BuildRequires: apache2-devel BuildRequires: nagios-rpm-macros %if 0%{?suse_version} >= 1110 @@ -210,6 +212,7 @@ %prep %setup -q %patch0 -p1 +%patch1 -p1 # replace default ido2db lock and socket file settings sed -ie "s|@localstatedir@/ido2db.lock|%{icinga_ido2db_lockfile}|g; \ ++++++ icinga-fix-create_mysqldb.patch ++++++ diff -rupN icinga-1.7.0.orig/module/idoutils/db/scripts/create_mysqldb.sh icinga-1.7.0/module/idoutils/db/scripts/create_mysqldb.sh --- icinga-1.7.0.orig/module/idoutils/db/scripts/create_mysqldb.sh 2012-05-15 15:00:56.000000000 +0200 +++ icinga-1.7.0/module/idoutils/db/scripts/create_mysqldb.sh 2012-06-15 17:12:43.998353127 +0200 @@ -40,7 +40,7 @@ echo "create new DB $DB, user $DBUSER an mysql -u $DBADMIN -h $DBHOST $P --verbose >$WD/create_mysqldb.log mysql <<EOS2 CREATE DATABASE $DB; CREATE USER '$DBUSER'@'$DBHOST' IDENTIFIED BY '$DBPASS'; - GRANT USAGE ON *.* TO '$DBUSER'@'$DBHOST' WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0; + GRANT USAGE ON $DB.* TO '$DBUSER'@'$DBHOST' WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0; GRANT SELECT , INSERT , UPDATE , DELETE ON $DB.* to '$DBUSER'@'$DBHOST'; FLUSH PRIVILEGES ; use $DB; -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
