/[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.2 by stephdl, Sat Aug 22 18:10:51 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 5
4  %define rpmver   3.0.RC6  %define rpmver   3.0.RC6
5    
6    
# 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  * 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
# Line 47  rm -rf $RPM_BUILD_ROOT Line 51  rm -rf $RPM_BUILD_ROOT
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    
# Line 105  echo "================================== Line 109  echo "==================================
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


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