--- rpms/smeserver-mediawiki/contribs10/smeserver-mediawiki.spec 2022/07/12 11:47:01 1.13 +++ rpms/smeserver-mediawiki/contribs10/smeserver-mediawiki.spec 2022/07/12 15:13:30 1.14 @@ -1,4 +1,4 @@ -# $Id: smeserver-mediawiki.spec,v 1.12 2022/07/12 11:29:51 brianr Exp $ +# $Id: smeserver-mediawiki.spec,v 1.13 2022/07/12 11:47:01 brianr Exp $ # Authority: ber_die # Name: Dietmar Berteld @@ -150,7 +150,7 @@ esac APP=MediaWiki URL=wiki WORKDIR=/root -MEDIAWIKIVERSION='1.38.1' +MEDIAWIKIVERSION='1.38.2' INSTALLDIR=/usr/share/doc/mediawiki-$MEDIAWIKIVERSION/Sources HTMLDIR=/opt/mediawiki MYSQLDB=mediawiki @@ -212,6 +212,7 @@ case $UPDATE in echo "Creating MySQL User and DataBase..." mysqladmin -u root create $MYSQLDB mysql $MYSQLDB < $INSTALLDIR/$MYSQLDB.sql + mysql $MYSQLDB -e "UPDATE user SET user_password = MD5( CONCAT( user_id, '-', MD5( 'mediawikiadmin' ) ) ) WHERE user_id =1 " mysql -u root -e "SET PASSWORD FOR $MYSQLUSER@localhost = PASSWORD( '$MYSQLPASS' ) " mysqladmin flush-privileges ;; @@ -266,7 +267,7 @@ echo "For more details, see http://wiki. echo "-------------------------------------------------------------------------------" %preun -MEDIAWIKIVERSION='1.38.1' +MEDIAWIKIVERSION='1.38.2' INSTALLDIR=/usr/share/doc/mediawiki-$MEDIAWIKIVERSION/Sources if [ $1 = 0 ] ; then mv $INSTALLDIR/DO_NOT_USE_OR_DELETE/MW-Full-Uninstall.sh /root/