* Fri Sep 13 2024 Jean-Philippe Pialasse <jpp@koozali.org> 5.2.1-1.sme

- fix mysql user creation [SME: 12736]
This commit is contained in:
Jean-Philippe Pialasse 2024-09-13 12:50:27 -04:00
parent 3f24364d93
commit b358327934
2 changed files with 10 additions and 28 deletions

View File

@ -16,30 +16,9 @@ fi
/usr/bin/mysql <<EOF /usr/bin/mysql <<EOF
USE mysql; USE mysql;
REPLACE INTO user ( CREATE OR REPLACE USER '$user'\@'localhost' IDENTIFIED VIA mysql_native_password USING PASSWORD ('$pass');
host,
user,
password)
VALUES (
'localhost',
'$user',
PASSWORD ('$pass'));
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON $db.* TO '$user'\@'localhost';
REPLACE INTO db (
host,
db,
user,
select_priv, insert_priv, update_priv, delete_priv,
create_priv, alter_priv, index_priv, drop_priv, create_tmp_table_priv,
grant_priv, lock_tables_priv, references_priv)
VALUES (
'localhost',
'$db',
'$user',
'Y', 'Y', 'Y', 'Y',
'Y', 'Y', 'Y', 'Y', 'Y',
'N', 'Y', 'Y');
GRANT ALL ON *.* TO 'sqladmin'\@'localhost' IDENTIFIED BY '$admpass' GRANT ALL ON *.* TO 'sqladmin'\@'localhost' IDENTIFIED BY '$admpass'
WITH GRANT OPTION; WITH GRANT OPTION;

View File

@ -5,8 +5,8 @@
Summary: phpMyAdmin for SME Server Summary: phpMyAdmin for SME Server
%define name smeserver-phpmyadmin %define name smeserver-phpmyadmin
Name: %{name} Name: %{name}
%define version 4.0.10.2 %define version 5.2.1
%define release 16 %define release 1
Version: %{version} Version: %{version}
Release: %{release}%{?dist} Release: %{release}%{?dist}
License: GPL License: GPL
@ -16,9 +16,9 @@ URL: http://www.phpmyadmin.net/
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
BuildArchitectures: noarch BuildArchitectures: noarch
Requires: smeserver-base Requires: smeserver-base
Requires: phpMyAdmin >= 4.4.15.10 Requires: phpMyAdmin >= 5.2.1
Requires: smeserver-release >= 10.0 Requires: smeserver-release >= 11.0
Requires: smeserver-apache >= 2.6.0-19 Requires: smeserver-apache
Obsoletes: phpmyadmin,phpMyAdmin3 Obsoletes: phpmyadmin,phpMyAdmin3
BuildRequires: smeserver-devtools BuildRequires: smeserver-devtools
Obsoletes: e-smith-phpmyadmin Obsoletes: e-smith-phpmyadmin
@ -31,6 +31,9 @@ Implementation of phpMyAdmin for SME Server.
Access with admin username/password via: https://yourdomain/phpmyadmin. Access with admin username/password via: https://yourdomain/phpmyadmin.
%changelog %changelog
* Fri Sep 13 2024 Jean-Philippe Pialasse <jpp@koozali.org> 5.2.1-1.sme
- fix mysql user creation [SME: 12736]
* Sun Sep 08 2024 fix-e-smith-pkg.sh by Trevor Batley <trevor@batley.id.au> 4.0.10.2-16.sme * Sun Sep 08 2024 fix-e-smith-pkg.sh by Trevor Batley <trevor@batley.id.au> 4.0.10.2-16.sme
- Fix e-smith references in smeserver-phpmyadmin [SME: 12732] - Fix e-smith references in smeserver-phpmyadmin [SME: 12732]