2 Commits

Author SHA1 Message Date
b358327934 * Fri Sep 13 2024 Jean-Philippe Pialasse <jpp@koozali.org> 5.2.1-1.sme
- fix mysql user creation [SME: 12736]
2024-09-13 12:50:27 -04:00
Trevor Batley
3f24364d93 fix-e-smith-pkg script (#12732) 2024-09-08 17:55:01 +10:00
2 changed files with 15 additions and 30 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 15 %define release 1
Version: %{version} Version: %{version}
Release: %{release}%{?dist} Release: %{release}%{?dist}
License: GPL License: GPL
@@ -15,12 +15,12 @@ Source: %{name}-%{version}.tar.xz
URL: http://www.phpmyadmin.net/ URL: http://www.phpmyadmin.net/
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
BuildArchitectures: noarch BuildArchitectures: noarch
Requires: e-smith-base Requires: smeserver-base
Requires: phpMyAdmin >= 4.4.15.10 Requires: phpMyAdmin >= 5.2.1
Requires: e-smith-release >= 10.0 Requires: smeserver-release >= 11.0
Requires: e-smith-apache >= 2.6.0-19 Requires: smeserver-apache
Obsoletes: phpmyadmin,phpMyAdmin3 Obsoletes: phpmyadmin,phpMyAdmin3
BuildRequires: e-smith-devtools BuildRequires: smeserver-devtools
Obsoletes: e-smith-phpmyadmin Obsoletes: e-smith-phpmyadmin
Obsoletes: smeserver-phpmyadmin <= 3.5.2.2-1 Obsoletes: smeserver-phpmyadmin <= 3.5.2.2-1
Obsoletes: smeserver-phpmyadmin-multiuser Obsoletes: smeserver-phpmyadmin-multiuser
@@ -31,6 +31,12 @@ 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
- Fix e-smith references in smeserver-phpmyadmin [SME: 12732]
* Sat Sep 07 2024 cvs2git.sh aka Brian Read <brianr@koozali.org> 4.0.10.2-15.sme * Sat Sep 07 2024 cvs2git.sh aka Brian Read <brianr@koozali.org> 4.0.10.2-15.sme
- Roll up patches and move to git repo [SME: 12338] - Roll up patches and move to git repo [SME: 12338]