diff --git a/root/etc/e-smith/templates.metadata/usr/share/horde/smeserver/mysql_set_horde_password.sql b/root/etc/e-smith/templates.metadata/usr/share/horde/smeserver/mysql_set_horde_password.sql new file mode 100644 index 0000000..85f8461 --- /dev/null +++ b/root/etc/e-smith/templates.metadata/usr/share/horde/smeserver/mysql_set_horde_password.sql @@ -0,0 +1,3 @@ +UID="root" +GID="root" +PERMS=0400 diff --git a/root/etc/e-smith/templates/usr/share/horde/smeserver/mysql_set_horde_password.sql b/root/etc/e-smith/templates/usr/share/horde/smeserver/mysql_set_horde_password.sql index 145a237..da78c9f 100644 --- a/root/etc/e-smith/templates/usr/share/horde/smeserver/mysql_set_horde_password.sql +++ b/root/etc/e-smith/templates/usr/share/horde/smeserver/mysql_set_horde_password.sql @@ -1,11 +1,6 @@ -CONNECT mysql; - -REPLACE INTO user (host, user, password) - VALUES ( - 'localhost', - 'horde', - password('{$horde{DbPassword}}') - ); +CREATE USER IF NOT EXISTS horde@localhost IDENTIFIED VIA mysql_native_password USING PASSWORD("{$horde{DbPassword}}") ; +GRANT ALL PRIVILEGES ON horde.* TO horde@localhost ; +SET PASSWORD FOR horde@localhost = PASSWORD("{$horde{DbPassword}}"); FLUSH PRIVILEGES; diff --git a/smeserver-horde.spec b/smeserver-horde.spec index 277815b..3509a15 100644 --- a/smeserver-horde.spec +++ b/smeserver-horde.spec @@ -4,7 +4,7 @@ Summary: e-smith specific Horde configuration and templates. %define name smeserver-horde Name: %{name} %define version 11.0.0 -%define release 3 +%define release 4 Version: %{version} Release: %{release}%{?dist} License: GPL @@ -53,6 +53,10 @@ Requires: php-pear-XML-RPC2 Requires: ImageMagick %changelog +* Sat Apr 06 2024 Jean-Philippe Pialasse 11.0.0-4.sme +- fix permission [SME: 12596] +- fix horde.mysql_set_password [SME: 12593] + * Thu Apr 04 2024 Brian Read 11.0.0-3.sme - Set license file to GPL2.0 [SME: 12577]