1 |
%define name smeserver-automysqlbackup |
%define name smeserver-automysqlbackup |
2 |
%define version 3.0.RC6 |
%define version 3.0.RC6 |
3 |
%define release 19 |
%define release 23 |
4 |
%define rpmver 3.0.RC6 |
%define rpmver 3.0.RC6 |
5 |
|
|
6 |
epoch: 2 |
epoch: 2 |
27 |
Patch6: smeserver-automysqlbackup-3.0.RC6-bz11561.patch |
Patch6: smeserver-automysqlbackup-3.0.RC6-bz11561.patch |
28 |
Patch7: smeserver-automysqlbackup-3.0.RC6-bz11622.patch |
Patch7: smeserver-automysqlbackup-3.0.RC6-bz11622.patch |
29 |
Patch8: smeserver-automysqlbackup-3.0.RC6-bz11970.Add-Maria-10x-support.patch |
Patch8: smeserver-automysqlbackup-3.0.RC6-bz11970.Add-Maria-10x-support.patch |
30 |
|
Patch9: smeserver-automysqlbackup-3.0.RC6-bz11970.Add-Maria-10x-rename-templates.patch |
31 |
|
|
32 |
%description |
%description |
33 |
This RPM is an unofficial addon for the SME Server 10.x. |
This RPM is an unofficial addon for the SME Server 10.x. |
37 |
|
|
38 |
|
|
39 |
%changelog |
%changelog |
40 |
* Mon May 09 2022 John Crisp <jcrisp@safeandsoundit.co.uk> |
* Tue Jun 07 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.0.RC6-23.sme |
41 |
|
- Modify backup directory names [SME: 11970] |
42 |
|
|
43 |
|
* Tue May 31 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.0.RC6-22.sme |
44 |
|
- Fix more typos in templates [SME: 11970] |
45 |
|
|
46 |
|
* Tue May 31 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.0.RC6-21.sme |
47 |
|
- Fix typos in templates [SME: 11970] |
48 |
|
|
49 |
|
* Mon May 30 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.0.RC6-20.sme |
50 |
|
- Correct template names [SME: 11970] |
51 |
|
- Add enable instructions |
52 |
|
|
53 |
|
* Mon May 09 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.0.RC6-19.sme |
54 |
- Add Maria DB 10.x support [SME: 11970] |
- Add Maria DB 10.x support [SME: 11970] |
55 |
- Requires Koozali SME Server v10.x |
- Requires Koozali SME Server v10.x |
56 |
|
|
123 |
%patch6 -p1 |
%patch6 -p1 |
124 |
%patch7 -p1 |
%patch7 -p1 |
125 |
%patch8 -p1 |
%patch8 -p1 |
126 |
|
%patch9 -p1 |
127 |
|
|
128 |
%build |
%build |
129 |
perl createlinks |
perl createlinks |
174 |
mysql -u root -e "REVOKE ALL PRIVILEGES ON *.* FROM '$MYSQLUSER'@'localhost';" |
mysql -u root -e "REVOKE ALL PRIVILEGES ON *.* FROM '$MYSQLUSER'@'localhost';" |
175 |
mysql -u root -e "DROP USER $MYSQLUSER@localhost;" |
mysql -u root -e "DROP USER $MYSQLUSER@localhost;" |
176 |
echo " " |
echo " " |
177 |
echo "Do that for each DB - e.g mysq55, mysql57 etc" |
echo "Do that for each DB - e.g mysq55, mysql57, mariadb101, maria105 etc" |
178 |
echo " " |
echo " " |
179 |
# Delete custom template fragment |
# Delete custom template fragment |
180 |
echo " delete db configuration automysqlbackup" |
echo " delete db configuration automysqlbackup" |