/[smecontribs]/rpms/smeserver-automysqlbackup/contribs9/smeserver-automysqlbackup.spec
ViewVC logotype

Diff of /rpms/smeserver-automysqlbackup/contribs9/smeserver-automysqlbackup.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.1 by unnilennium, Tue Jun 17 19:01:17 2014 UTC Revision 1.3 by stephdl, Wed Sep 16 20:50:45 2015 UTC
# Line 1  Line 1 
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 6
4  %define rpmver   3.0.RC6  %define rpmver   3.0.RC6
5    
6    epoch: 2
7  Summary:            automysqlbackup is a script to backup your msql database on sme8  Summary:            automysqlbackup is a script to backup your msql database on sme8
8  Name:               %{name}  Name:               %{name}
9  Version:            %{version}  Version:            %{version}
# Line 28  This script is based on automysqlbackup Line 28  This script is based on automysqlbackup
28    
29    
30  %changelog  %changelog
31  * Mon Jun 16 2014 JP Pialasse <tests@pialasse.com> 3.0.RC7-1.sme  * Wed Sep 16 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 3.0.RC6-6.sme
32  - initial import to SME9 contribs  - Added 'epoch: 2'
33    
34    * Sat Aug 22 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 3.0.RC6-5.sme
35    - Initial release to contribs9
36    
37    * Sun Aug 17 2014 Stephane de Labrusse <stephdl@de-labrusse.fr> 3.0.RC6-4
38    - added my own patch against the --events warning
39    --Warning: Skipping the data of table mysql.event. Specify the --events option explicitly.
40    
41  * 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
42  - split the contrib in two versions smeserver-automysqlbackup and automysqlbackup  - split the contrib in two versions smeserver-automysqlbackup and automysqlbackup
# Line 47  rm -rf $RPM_BUILD_ROOT Line 54  rm -rf $RPM_BUILD_ROOT
54    
55  %install  %install
56  /bin/rm -rf $RPM_BUILD_ROOT  /bin/rm -rf $RPM_BUILD_ROOT
57  (/usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT)  (cd root   ;/usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT)
58  /bin/rm -f %{name}-%{version}-filelist  /bin/rm -f %{name}-%{version}-filelist
59  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
60    
# Line 105  echo "================================== Line 112  echo "==================================
112    
113  #create backupuser and give rights  #create backupuser and give rights
114  MYSQLPASS=$(/sbin/e-smith/config getprop $SMEDB DbPassword)  MYSQLPASS=$(/sbin/e-smith/config getprop $SMEDB DbPassword)
115  mysql -e " GRANT SELECT,LOCK TABLES ON *.* TO $MYSQLUSER@'localhost' "  mysql -e " GRANT EVENT,SELECT,LOCK TABLES ON *.* TO $MYSQLUSER@'localhost' "
116  mysql -u root -e "SET PASSWORD FOR $MYSQLUSER@localhost = PASSWORD( '$MYSQLPASS' ) "  mysql -u root -e "SET PASSWORD FOR $MYSQLUSER@localhost = PASSWORD( '$MYSQLPASS' ) "
117  mysqladmin flush-privileges  mysqladmin flush-privileges
118  /etc/rc.d/init.d/mysql.init start  /etc/rc.d/init.d/mysql.init start


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed