1 |
# $Id: smeserver-mediawiki.spec,v 1.3 2022/06/01 09:29:22 brianr Exp $ |
# $Id: smeserver-mediawiki.spec,v 1.4 2022/06/01 09:30:30 brianr Exp $ |
2 |
# Authority: ber_die |
# Authority: ber_die |
3 |
# Name: Dietmar Berteld |
# Name: Dietmar Berteld |
4 |
|
|
5 |
%define name smeserver-mediawiki |
%define name smeserver-mediawiki |
6 |
%define version 1.37.2 |
%define version 1.37.2-1 |
7 |
%define release 1 |
%define release 1 |
8 |
|
|
9 |
Summary: Mediawiki Web Application for SME Server 7.x based on Mediawiki 1.37.2 |
Summary: Mediawiki Web Application for SME Server 7.x based on Mediawiki 1.37.2 |
31 |
http://your_e-smith-server_adress/wiki |
http://your_e-smith-server_adress/wiki |
32 |
|
|
33 |
%changelog |
%changelog |
34 |
|
* Wed Jun 01 2022 BogusDateBot |
35 |
|
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday, |
36 |
|
by assuming the date is correct and changing the weekday. |
37 |
|
Thu Oct 23 2007 --> Thu Oct 18 2007 or Tue Oct 23 2007 or Thu Oct 25 2007 or .... |
38 |
|
Thu Feb 26 2008 --> Thu Feb 21 2008 or Tue Feb 26 2008 or Thu Feb 28 2008 or .... |
39 |
|
|
40 |
* Tue May 31 2022 Brian Read <brianr@bjsystems.co.uk> 1.6.10-10 sme |
* Tue May 31 2022 Brian Read <brianr@bjsystems.co.uk> 1.6.10-10 sme |
41 |
- Update to SME10 [SME:11987] |
- Update to SME10 [SME:11987] |
42 |
- Add php-fpm stuff to httpd.conf |
- Add php-fpm stuff to httpd.conf |
51 |
configuration file as well so admins only need to add users to the proper |
configuration file as well so admins only need to add users to the proper |
52 |
groups in the server-manager |
groups in the server-manager |
53 |
|
|
54 |
* Thu Feb 26 2008 Dietmar Berteld> |
* Tue Feb 26 2008 Dietmar Berteld> |
55 |
|
Thu Feb 26 2008 --> Thu Feb 21 2008 or Tue Feb 26 2008 or Thu Feb 28 2008 or .... |
56 |
- [1.6.10-7] Fixed httpd-settings for local access only |
- [1.6.10-7] Fixed httpd-settings for local access only |
57 |
|
|
58 |
* Thu Oct 23 2007 Dietmar Berteld> |
* Tue Oct 23 2007 Dietmar Berteld> |
59 |
|
Thu Oct 23 2007 --> Thu Oct 18 2007 or Tue Oct 23 2007 or Thu Oct 25 2007 or .... |
60 |
- [1.6.10-6] Fixed automated uninstall issue for MySQL-DB and MySQL-user |
- [1.6.10-6] Fixed automated uninstall issue for MySQL-DB and MySQL-user |
61 |
|
|
62 |
* Fri Oct 19 2007 Dietmar Berteld> |
* Fri Oct 19 2007 Dietmar Berteld> |
186 |
0) |
0) |
187 |
echo "Creating MySQL User and DataBase..." |
echo "Creating MySQL User and DataBase..." |
188 |
mysqladmin -u root create $MYSQLDB |
mysqladmin -u root create $MYSQLDB |
189 |
#mysql $MYSQLDB < $INSTALLDIR/$MYSQLDB.sql |
mysql $MYSQLDB < $INSTALLDIR/$MYSQLDB.sql |
190 |
mysql -u root -e "SET PASSWORD FOR $MYSQLUSER@localhost = PASSWORD( '$MYSQLPASS' ) " |
mysql -u root -e "SET PASSWORD FOR $MYSQLUSER@localhost = PASSWORD( '$MYSQLPASS' ) " |
191 |
mysqladmin flush-privileges |
mysqladmin flush-privileges |
192 |
;; |
;; |
203 |
sed 's.#!..g' $HTMLDIR/LocalSettings.php > $HTMLDIR/LocalSettings2.php |
sed 's.#!..g' $HTMLDIR/LocalSettings.php > $HTMLDIR/LocalSettings2.php |
204 |
mv $HTMLDIR/LocalSettings2.php $HTMLDIR/LocalSettings.php |
mv $HTMLDIR/LocalSettings2.php $HTMLDIR/LocalSettings.php |
205 |
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
206 |
/usr/local/bin/svc -h /service/httpd-e-smith |
systemctl restart httpd-e-smith.service |
207 |
echo "-------------------------------------------------------------------------------" |
echo "-------------------------------------------------------------------------------" |
208 |
case $UPDATE in |
case $UPDATE in |
209 |
0) |
0) |
234 |
echo " " |
echo " " |
235 |
echo "Don't forget to apply modifications with following commands:" |
echo "Don't forget to apply modifications with following commands:" |
236 |
echo " # expand-template /etc/httpd/conf/httpd.conf" |
echo " # expand-template /etc/httpd/conf/httpd.conf" |
237 |
echo " # svc -h /service/httpd-e-smith" |
echo " # systemctl restart httpd-e-smith.service" |
238 |
echo " " |
echo " " |
239 |
echo "For more details, see http://wiki.contribs.org/Mediawiki" |
echo "For more details, see http://wiki.contribs.org/Mediawiki" |
240 |
echo "-------------------------------------------------------------------------------" |
echo "-------------------------------------------------------------------------------" |