replace mysql_upgrade with mariadb-upgrade and don't run on first install; fix chown warning [release 11.2.2-2mamba;Thu Dec 28 2023]
This commit is contained in:
parent
a357ae5f9e
commit
6324ed8131
13
mariadb.spec
13
mariadb.spec
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
Name: mariadb
|
Name: mariadb
|
||||||
Version: 11.2.2
|
Version: 11.2.2
|
||||||
Release: 1mamba
|
Release: 2mamba
|
||||||
Summary: A SQL database engine designed as a drop-in replacement of MySQL(R)
|
Summary: A SQL database engine designed as a drop-in replacement of MySQL(R)
|
||||||
Group: Applications/Databases
|
Group: Applications/Databases
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
@ -295,7 +295,7 @@ if [ $1 -eq 1 ]; then
|
|||||||
# new install: initialize db
|
# new install: initialize db
|
||||||
mysql_install_db --basedir=%{_prefix} --ldata=/var/lib/mysql%{?MAJversion}
|
mysql_install_db --basedir=%{_prefix} --ldata=/var/lib/mysql%{?MAJversion}
|
||||||
fi
|
fi
|
||||||
/bin/chown -R mysql.mysql /var/lib/mysql%{?MAJversion}
|
/bin/chown -R mysql:mysql /var/lib/mysql%{?MAJversion}
|
||||||
systemctl -q enable mariadb
|
systemctl -q enable mariadb
|
||||||
systemctl -q start mariadb
|
systemctl -q start mariadb
|
||||||
fi
|
fi
|
||||||
@ -304,8 +304,10 @@ if [ $1 -ge 1 ]; then
|
|||||||
systemctl -q enable mariadb
|
systemctl -q enable mariadb
|
||||||
systemctl -q start mariadb
|
systemctl -q start mariadb
|
||||||
}
|
}
|
||||||
mysql_upgrade || {
|
fi
|
||||||
echo "Run: 'mysql_upgrade -u root -p' to upgrade db!"
|
if [ $1 -gt 1 ]; then
|
||||||
|
mariadb-upgrade || {
|
||||||
|
echo "Run: 'mariadb-upgrade -u root -p' to upgrade db!"
|
||||||
}
|
}
|
||||||
fi
|
fi
|
||||||
:
|
:
|
||||||
@ -580,6 +582,9 @@ fi
|
|||||||
%{_mandir}/man3/mysql_*.3*
|
%{_mandir}/man3/mysql_*.3*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Dec 28 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 11.2.2-2mamba
|
||||||
|
- replace mysql_upgrade with mariadb-upgrade and don't run on first install; fix chown warning
|
||||||
|
|
||||||
* Tue Nov 21 2023 Automatic Build System <autodist@mambasoft.it> 11.2.2-1mamba
|
* Tue Nov 21 2023 Automatic Build System <autodist@mambasoft.it> 11.2.2-1mamba
|
||||||
- automatic version update by autodist
|
- automatic version update by autodist
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user