--- rpms/smeserver-automysqlbackup/contribs9/smeserver-automysqlbackup.spec 2014/06/17 19:01:17 1.1 +++ rpms/smeserver-automysqlbackup/contribs9/smeserver-automysqlbackup.spec 2015/08/22 18:10:51 1.2 @@ -1,6 +1,6 @@ %define name smeserver-automysqlbackup -%define version 3.0.RC7 -%define release 1 +%define version 3.0.RC6 +%define release 5 %define rpmver 3.0.RC6 @@ -28,8 +28,12 @@ This script is based on automysqlbackup %changelog -* Mon Jun 16 2014 JP Pialasse 3.0.RC7-1.sme -- initial import to SME9 contribs +* Sat Aug 22 2015 stephane de Labrusse 3.0.RC6-5.sme +- Initial release to contribs9 + +* Sun Aug 17 2014 Stephane de Labrusse 3.0.RC6-4 +- added my own patch against the --events warning +--Warning: Skipping the data of table mysql.event. Specify the --events option explicitly. * Sun Oct 27 2013 Stephane de Labrusse 3.0.RC6.3 - split the contrib in two versions smeserver-automysqlbackup and automysqlbackup @@ -47,7 +51,7 @@ rm -rf $RPM_BUILD_ROOT %install /bin/rm -rf $RPM_BUILD_ROOT -(/usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) +(cd root ;/usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) /bin/rm -f %{name}-%{version}-filelist /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist @@ -105,7 +109,7 @@ echo "================================== #create backupuser and give rights MYSQLPASS=$(/sbin/e-smith/config getprop $SMEDB DbPassword) -mysql -e " GRANT SELECT,LOCK TABLES ON *.* TO $MYSQLUSER@'localhost' " +mysql -e " GRANT EVENT,SELECT,LOCK TABLES ON *.* TO $MYSQLUSER@'localhost' " mysql -u root -e "SET PASSWORD FOR $MYSQLUSER@localhost = PASSWORD( '$MYSQLPASS' ) " mysqladmin flush-privileges /etc/rc.d/init.d/mysql.init start