3 Commits

Author SHA1 Message Date
a34327c7c2 * Sat Sep 06 2025 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-19.sme
- fix MULTIPLE_RPM_OWNERS [SME: 13131]
2025-09-06 16:45:43 -04:00
trevorb
c310fbff74 update check if mariadb running and exit 2025-07-21 14:28:17 +10:00
trevorb
17c47013a1 fix to allow upgrade of innodb to new pagesize as required by 12982 on install [SME: 13083] 2025-07-21 10:08:31 +10:00
3 changed files with 35 additions and 1 deletions

View File

@@ -92,4 +92,11 @@ templates2events("/etc/rsyslog.conf", $event);
event_link("systemd-reload", $event, "89");
event_link("systemd-default", $event, "88");
#--------------------------------------------------
# actions for post-install event
#--------------------------------------------------
$event = "post-install";
event_link("mysql-update-innodb-page-size", $event, "03");

View File

@@ -0,0 +1,21 @@
#!/bin/sh
event=$1
# check event is defined or return
[[ -z "$event" ]] && exit 0
# check we run as post-install event or return
[[ "$event" == "post-install" ]] || exit 0
# check mariadb is not running or return
/usr/bin/pgrep mariadbd && exit 0
# ONLY delete the mysql data dirictory if it is initial state
# we assume if only mysql, test, sys and performance_schema this is the case
validdirs="/var/lib/mysql/mysql/ /var/lib/mysql/performance_schema/ /var/lib/mysql/sys/ /var/lib/mysql/test/"
for dir in $(ls -d /var/lib/mysql/*/) ; do
[[ $(echo ${validdirs} | grep ${dir}) ]] || exit 0
done
# we should be safe to reset dir content
# we use find as glob will ignore dot starting filename
# rm -rf /var/lib/mysql/*
find /var/lib/mysql -mindepth 1 -maxdepth 1 -print0 | xargs -0 rm -rf
exit 0

View File

@@ -2,7 +2,7 @@ Summary: Koozali SME Server specific mysql configuration and templates.
%define name smeserver-mysql
Name: %{name}
%define version 11.0.0
%define release 17
%define release 19
Version: %{version}
Release: %{release}%{?dist}
License: GPL
@@ -81,6 +81,12 @@ rm -rf $RPM_BUILD_ROOT
%defattr(-,root,root)
%changelog
* Sat Sep 06 2025 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-19.sme
- fix MULTIPLE_RPM_OWNERS [SME: 13131]
* Mon Jul 21 2025 Trevor Batley <trevor@batley.id.au> 11.0.0-18.sme
- add fix to allow upgrade of innodb to new pagesize as required by 12982 on install [SME: 13083]
* Thu Jun 05 2025 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-17.sme
- fix conflict with MariaDB-server-compat [SME: 13024]