mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
(please merge into 4.1 and onwards)
- re-added missing pre- and post(un)install scripts to server subpackage - added config file /etc/my.cnf to the file list (just for completeness) - make sure to create the datadir with 755 permissions
This commit is contained in:
@@ -322,7 +322,11 @@ install -m755 $MBD/support-files/mysql.server $RBR/etc/init.d/mysql
|
|||||||
# (safe_mysqld will be gone in MySQL 4.1)
|
# (safe_mysqld will be gone in MySQL 4.1)
|
||||||
ln -sf ./mysqld_safe $RBR/usr/bin/safe_mysqld
|
ln -sf ./mysqld_safe $RBR/usr/bin/safe_mysqld
|
||||||
|
|
||||||
%pre
|
# Touch the place where the my.cnf config file might be located
|
||||||
|
# Just to make sure it's in the file list and marked as a config file
|
||||||
|
touch $RBR/etc/my.cnf
|
||||||
|
|
||||||
|
%pre server
|
||||||
# Shut down a previously installed server first
|
# Shut down a previously installed server first
|
||||||
if test -x /etc/init.d/mysql
|
if test -x /etc/init.d/mysql
|
||||||
then
|
then
|
||||||
@@ -336,11 +340,11 @@ then
|
|||||||
sleep 5
|
sleep 5
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%post
|
%post server
|
||||||
mysql_datadir=/var/lib/mysql
|
mysql_datadir=/var/lib/mysql
|
||||||
|
|
||||||
# Create data directory if needed
|
# Create data directory if needed
|
||||||
if test ! -d $mysql_datadir; then mkdir $mysql_datadir; fi
|
if test ! -d $mysql_datadir; then mkdir -m755 $mysql_datadir; fi
|
||||||
if test ! -d $mysql_datadir/mysql; then mkdir $mysql_datadir/mysql; fi
|
if test ! -d $mysql_datadir/mysql; then mkdir $mysql_datadir/mysql; fi
|
||||||
if test ! -d $mysql_datadir/test; then mkdir $mysql_datadir/test; fi
|
if test ! -d $mysql_datadir/test; then mkdir $mysql_datadir/test; fi
|
||||||
|
|
||||||
@@ -384,7 +388,7 @@ sleep 2
|
|||||||
echo "Restarting mysqld."
|
echo "Restarting mysqld."
|
||||||
/etc/init.d/mysql restart > /dev/null 2>&1
|
/etc/init.d/mysql restart > /dev/null 2>&1
|
||||||
|
|
||||||
%preun
|
%preun server
|
||||||
if test $1 = 0
|
if test $1 = 0
|
||||||
then
|
then
|
||||||
# Stop MySQL before uninstalling it
|
# Stop MySQL before uninstalling it
|
||||||
@@ -430,6 +434,8 @@ fi
|
|||||||
%doc %attr(644, root, man) %{_mandir}/man1/perror.1*
|
%doc %attr(644, root, man) %{_mandir}/man1/perror.1*
|
||||||
%doc %attr(644, root, man) %{_mandir}/man1/replace.1*
|
%doc %attr(644, root, man) %{_mandir}/man1/replace.1*
|
||||||
|
|
||||||
|
%ghost %config(noreplace,missingok) /etc/my.cnf
|
||||||
|
|
||||||
%attr(755, root, root) /usr/bin/isamchk
|
%attr(755, root, root) /usr/bin/isamchk
|
||||||
%attr(755, root, root) /usr/bin/isamlog
|
%attr(755, root, root) /usr/bin/isamlog
|
||||||
%attr(755, root, root) /usr/bin/my_print_defaults
|
%attr(755, root, root) /usr/bin/my_print_defaults
|
||||||
@@ -529,6 +535,12 @@ fi
|
|||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|
||||||
|
* Tue Feb 11 2003 Lenz Grimmer <lenz@mysql.com>
|
||||||
|
|
||||||
|
- re-added missing pre- and post(un)install scripts to server subpackage
|
||||||
|
- added config file /etc/my.cnf to the file list (just for completeness)
|
||||||
|
- make sure to create the datadir with 755 permissions
|
||||||
|
|
||||||
* Mon Jan 27 2003 Lenz Grimmer <lenz@mysql.com>
|
* Mon Jan 27 2003 Lenz Grimmer <lenz@mysql.com>
|
||||||
|
|
||||||
- removed unused CC and CXX variables
|
- removed unused CC and CXX variables
|
||||||
|
Reference in New Issue
Block a user