Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F23645236
D3901.id10101.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1009 B
Referenced Files
None
Subscribers
None
D3901.id10101.diff
View Options
diff --git a/roles/saas-mediawiki/software/files/mw.sh.jinja b/roles/saas-mediawiki/software/files/mw.sh.jinja
--- a/roles/saas-mediawiki/software/files/mw.sh.jinja
+++ b/roles/saas-mediawiki/software/files/mw.sh.jinja
@@ -74,12 +74,12 @@
# Determine script path
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-# Appends .php if string doesn't contain it
-test "${SCRIPT#*.php}" != "$SCRIPT" || SCRIPT="$SCRIPT.php"
+# checks the full path for an existing script
+test "${SCRIPT#/}" != "$SCRIPT" || SCRIPT="$SCRIPT.php"
# By default, scripts are located in maintenance wgCacheDirectory
if [ "${SCRIPT#/}" == "$SCRIPT" ]; then
- FULL_SCRIPT_PATH=$MEDIAWIKI_DIRECTORY/maintenance/$SCRIPT
+ FULL_SCRIPT_PATH=$MEDIAWIKI_DIRECTORY/maintenance/$SCRIPT.php
else
FULL_SCRIPT_PATH=$SCRIPT
fi
@@ -100,4 +100,4 @@
export SERVER_NAME
export MW_INSTALL_PATH
-rlwrap php "$FULL_SCRIPT_PATH" "$@"
+rlwrap php "$MEDIAWIKI_DIRECTORY/maintenance/run.php" "$FULL_SCRIPT_PATH" "$@"
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Feb 6, 20:50 (5 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3427363
Default Alt Text
D3901.id10101.diff (1009 B)
Attached To
Mode
D3901: Run MediaWiki maintenance scripts using run.php entry point
Attached
Detach File
Event Timeline
Log In to Comment