Sisyphus repositório
Última atualização: 20 agosto 2019 | SRPMs: 17340 | Visitas: 14666696
en ru br
ALT Linux repositórios
S:1.32.2-alt1
D:1.13.0-alt1
5.0: 1.13.0-alt3
4.1: 1.13.0-alt2.M41.2
4.0: 1.13.0-alt2.M40.1
+backports:1.13.0-alt2.M40.1

Group :: Rede/WWW
RPM: mediawiki

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: mediawiki-1.31-alt.patch
Download


diff --git a/mediawiki/AdminSettings.php b/mediawiki/AdminSettings.php
new file mode 100644
index 0000000..7e43b7f
--- /dev/null
+++ b/mediawiki/AdminSettings.php
@@ -0,0 +1,7 @@
+<?php
+$admin_settings_file="/var/www/webapps/mediawiki/config/AdminSettings.php";
+if (is_readable($admin_settings_file)) {
+	require_once($admin_settings_file);
+	}
+?>
+
diff --git a/mediawiki/maintenance/storage/make-blobs b/mediawiki/maintenance/storage/make-blobs
index 16dcb67..22321a6 100644
--- a/mediawiki/maintenance/storage/make-blobs
+++ b/mediawiki/maintenance/storage/make-blobs
@@ -10,5 +10,11 @@ else
 	table=$3
 fi
 
-echo "CREATE DATABASE $2" | mysql -u wikiadmin -p`wikiadmin_pass` -h $1 && \
-sed "s/blobs\>/$table/" blobs.sql | mysql -u wikiadmin -p`wikiadmin_pass` -h $1 $2
+MYSQL=`which mysql`
+if [ -z "$MYSQL" ]; then
+	echo "Error: no MySQL client found"
+	exit 1
+fi
+
+echo "CREATE DATABASE $2" | $MYSQL -u wikiadmin -p`wikiadmin_pass` -h $1 && \
+sed "s/blobs\>/$table/" blobs.sql | $MYSQL -u wikiadmin -p`wikiadmin_pass` -h $1 $2
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009