2 |
%define name smeserver-mysql |
%define name smeserver-mysql |
3 |
Name: %{name} |
Name: %{name} |
4 |
%define version 2.7.0 |
%define version 2.7.0 |
5 |
%define release 3 |
%define release 5 |
6 |
Version: %{version} |
Version: %{version} |
7 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
8 |
License: GPL |
License: GPL |
50 |
# default values from /etc/opt/rh/rh-mariadb101/my.cnf.d/mariadb-server.cnf |
# default values from /etc/opt/rh/rh-mariadb101/my.cnf.d/mariadb-server.cnf |
51 |
basedir="/opt/rh/rh-mariadb$ver/root/usr" |
basedir="/opt/rh/rh-mariadb$ver/root/usr" |
52 |
datadir="/var/opt/rh/rh-mariadb$ver/lib/mysql" |
datadir="/var/opt/rh/rh-mariadb$ver/lib/mysql" |
53 |
socket="/var/lib/mysql/maradb$ver.sock" |
socket="/var/lib/mysql/mariadb$ver.sock" |
54 |
logerror="/var//log/mariadb$ver/mariadb.log" |
logerror="/var//log/mariadb$ver/mariadb.log" |
55 |
#"/var/opt/rh/rh-mariadb$ver/log/mariadb/mariadb.log" |
#"/var/opt/rh/rh-mariadb$ver/log/mariadb/mariadb.log" |
56 |
pidfile="/var/run/rh-mariadb$ver-mariadb/mariadb.pid" |
pidfile="/var/run/rh-mariadb$ver-mariadb/mariadb.pid" |
181 |
sed -i root$ver/usr/lib/systemd/system/mariadb${ver}-mariadb.service \ |
sed -i root$ver/usr/lib/systemd/system/mariadb${ver}-mariadb.service \ |
182 |
-e "s/_safe//"; |
-e "s/_safe//"; |
183 |
fi |
fi |
184 |
|
if [ $ver -ge 104 ] |
185 |
|
then |
186 |
|
sed -i root$ver/usr/lib/systemd/system/mariadb${ver}-mariadb.service \ |
187 |
|
-e "s_set.password$_set.password2_" |
188 |
|
fi |
189 |
|
|
190 |
#### TODO check it is similar to rh one and functional ! |
#### TODO check it is similar to rh one and functional ! |
191 |
|
|
193 |
mkdir root$ver/usr/bin |
mkdir root$ver/usr/bin |
194 |
for i in mysql mysqlshow mysqladmin mysqldump mysqlimport mysqlbinlog |
for i in mysql mysqlshow mysqladmin mysqldump mysqlimport mysqlbinlog |
195 |
do |
do |
196 |
echo "/opt/rh/rh-mariadb${ver}/root/usr/bin/$i --socket=/var/lib/mysql/maradb${ver}.sock \"\$@\"" >root$ver/usr/bin/$i${ver} |
echo "/opt/rh/rh-mariadb${ver}/root/usr/bin/$i --socket=/var/lib/mysql/mariadb${ver}.sock \"\$@\"" >root$ver/usr/bin/$i${ver} |
197 |
done |
done |
198 |
|
|
199 |
#phpMyAdmin template |
#phpMyAdmin template |
200 |
|
mkdir -p root$ver/etc/e-smith/templates/etc/phpMyAdmin/config.inc.php/ |
201 |
sed rootscl/etc/e-smith/templates/etc/phpMyAdmin/config.inc.php/11configMysql_VER_ \ |
sed rootscl/etc/e-smith/templates/etc/phpMyAdmin/config.inc.php/11configMysql_VER_ \ |
202 |
-e "s_!!!VER!!!_${ver}_g" > rootscl/etc/e-smith/templates/etc/phpMyAdmin/config.inc.php/11configMysql${ver} |
-e "s_!!!SOCKET!!!_$socket _g" \ |
203 |
|
-e "s_!!!VER!!!_${ver}_g" > root$ver/etc/e-smith/templates/etc/phpMyAdmin/config.inc.php/11configMysql${ver} |
204 |
|
|
205 |
done |
done |
206 |
|
|
312 |
Requires: rh-mariadb105-mariadb |
Requires: rh-mariadb105-mariadb |
313 |
Requires: rh-mariadb105-mariadb-server |
Requires: rh-mariadb105-mariadb-server |
314 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
315 |
|
Requires: smeserver-mysql >= 2.7.0-5 |
316 |
%description -n smeserver-mariadb105 |
%description -n smeserver-mariadb105 |
317 |
Koozali SME Server configuration package for mariadb105 RH SCLo |
Koozali SME Server configuration package for mariadb105 RH SCLo |
318 |
|
|
324 |
|
|
325 |
|
|
326 |
%changelog |
%changelog |
327 |
|
* Sun Mar 13 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.7.0-5.sme |
328 |
|
- fix typo in socket, seen with phpmyadmin [SME: 11899] |
329 |
|
- fix permissions for mariadb105 [SME: 11899] |
330 |
|
create a dedicated set.password for mariadb>103 |
331 |
|
|
332 |
* Sun Mar 13 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.7.0-3.sme |
* Sun Mar 13 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.7.0-3.sme |
333 |
- fix [SME: ] |
- missing phpMyAdmin fragments [SME: 11899] |
334 |
|
|
335 |
* Sun Mar 13 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.7.0-2.sme |
* Sun Mar 13 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.7.0-2.sme |
336 |
- fix few sclo issues [SME: 11899] |
- fix few sclo issues [SME: 11899] |