1 |
%define name smeserver-automysqlbackup |
%define name smeserver-automysqlbackup |
2 |
%define version 3.0.RC7 |
%define version 3.0.RC6 |
3 |
%define release 1 |
%define release 5 |
4 |
%define rpmver 3.0.RC6 |
%define rpmver 3.0.RC6 |
5 |
|
|
6 |
|
|
28 |
|
|
29 |
|
|
30 |
%changelog |
%changelog |
31 |
* Mon Jun 16 2014 JP Pialasse <tests@pialasse.com> 3.0.RC7-1.sme |
* Sat Aug 22 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 3.0.RC6-5.sme |
32 |
- initial import to SME9 contribs |
- Initial release to contribs9 |
33 |
|
|
34 |
|
* Sun Aug 17 2014 Stephane de Labrusse <stephdl@de-labrusse.fr> 3.0.RC6-4 |
35 |
|
- added my own patch against the --events warning |
36 |
|
--Warning: Skipping the data of table mysql.event. Specify the --events option explicitly. |
37 |
|
|
38 |
* Sun Oct 27 2013 Stephane de Labrusse <stephdl@de-labrusse.fr> 3.0.RC6.3 |
* Sun Oct 27 2013 Stephane de Labrusse <stephdl@de-labrusse.fr> 3.0.RC6.3 |
39 |
- split the contrib in two versions smeserver-automysqlbackup and automysqlbackup |
- split the contrib in two versions smeserver-automysqlbackup and automysqlbackup |
51 |
|
|
52 |
%install |
%install |
53 |
/bin/rm -rf $RPM_BUILD_ROOT |
/bin/rm -rf $RPM_BUILD_ROOT |
54 |
(/usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
(cd root ;/usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
55 |
/bin/rm -f %{name}-%{version}-filelist |
/bin/rm -f %{name}-%{version}-filelist |
56 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
57 |
|
|
109 |
|
|
110 |
#create backupuser and give rights |
#create backupuser and give rights |
111 |
MYSQLPASS=$(/sbin/e-smith/config getprop $SMEDB DbPassword) |
MYSQLPASS=$(/sbin/e-smith/config getprop $SMEDB DbPassword) |
112 |
mysql -e " GRANT SELECT,LOCK TABLES ON *.* TO $MYSQLUSER@'localhost' " |
mysql -e " GRANT EVENT,SELECT,LOCK TABLES ON *.* TO $MYSQLUSER@'localhost' " |
113 |
mysql -u root -e "SET PASSWORD FOR $MYSQLUSER@localhost = PASSWORD( '$MYSQLPASS' ) " |
mysql -u root -e "SET PASSWORD FOR $MYSQLUSER@localhost = PASSWORD( '$MYSQLPASS' ) " |
114 |
mysqladmin flush-privileges |
mysqladmin flush-privileges |
115 |
/etc/rc.d/init.d/mysql.init start |
/etc/rc.d/init.d/mysql.init start |