File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -129,8 +129,9 @@ def run_container_command(
129129 if workdir and not workdir .startswith ("/" ):
130130 # resolve relative paths against the MW installation directory
131131 workdir = config .mw_install_path + "/" + workdir
132- # Use the MW installation directory provided in .env by default (#13)
133- exec_options = ["-w" , (workdir or config .mw_install_path )] + (exec_options or [])
132+ # For mediawiki containers, use the MW installation directory provided in .env by default (#13)
133+ workdir_option = ["-w" , (workdir or config .mw_install_path )] if container_name .startswith ("mediawiki" ) else []
134+ exec_options = workdir_option + (exec_options or [])
134135 return run_docker_command (
135136 config ,
136137 ["exec" ] + exec_options + [container_name ] + command ,
You can’t perform that action at this time.
0 commit comments