mirror of
https://abf.rosa.ru/djam/mariadb.git
synced 2025-02-24 07:02:47 +00:00
make /var/lib/mysql pre-exists before scripts creates it
This commit is contained in:
parent
89ca44b626
commit
546fa50a21
1 changed files with 5 additions and 1 deletions
|
@ -41,7 +41,7 @@
|
|||
|
||||
Name: mariadb
|
||||
Version: 10.5.10
|
||||
Release: 2
|
||||
Release: 3
|
||||
Summary: Server part of MariaDB
|
||||
License: SUSE-GPL-2.0-with-FLOSS-exception
|
||||
Group: Databases
|
||||
|
@ -685,6 +685,9 @@ mkdir -p '%{buildroot}'%{_localstatedir}/lib/mysql-files
|
|||
mkdir -p %{buildroot}%{_sysusersdir}
|
||||
install -m 644 %{SOURCE12} %{buildroot}%{_sysusersdir}/%{name}.conf
|
||||
|
||||
# 0700 mode, mysql:root, set by %%attr
|
||||
mkdir -p %{buildroot}/var/lib/mysql
|
||||
|
||||
%check
|
||||
cd build
|
||||
|
||||
|
@ -791,6 +794,7 @@ exit 0
|
|||
%files -f mariadb.files -f mariadb-galera-exclude.files
|
||||
%config(noreplace) %attr(-, root, mysql) %{_sysconfdir}/my.cnf
|
||||
%config(noreplace) %attr(-, root, mysql) %{_sysconfdir}/my.cnf.d/
|
||||
%dir %attr(0700, mysql, root) /var/lib/mysql
|
||||
%if %{with galera}
|
||||
%exclude %{_sysconfdir}/my.cnf.d/50-galera.cnf
|
||||
%endif
|
||||
|
|
Loading…
Add table
Reference in a new issue