Skip to content

Commit

Permalink
mwscript: Fix extension list generation
Browse files Browse the repository at this point in the history
  • Loading branch information
AgentIsai authored Nov 19, 2024
1 parent 5632718 commit eaea192
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/mediawiki/files/bin/mwscript.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ def get_commands(args: argparse.Namespace) -> CommandInfo | int:
command = f'sudo -u www-data /usr/local/bin/foreachwikiindblist /srv/mediawiki/cache/{dblist_file} {script}'
elif args.extension:
long = True
generate = f'php {runner}/srv/mediawiki/{args.version}/extensions/MirahezeMagic/maintenance/generateExtensionDatabaseList.php --wiki=loginwiki --extension={args.extension} --directory=/home/{os.getlogin()}'
generate = f'sudo -u www-data php {runner}/srv/mediawiki/{args.version}/extensions/MirahezeMagic/maintenance/generateExtensionDatabaseList.php --wiki=loginwiki --extension={args.extension} --directory=/tmp'
dblist_file = get_dblist_file(args.extension)
command = f'sudo -u www-data /usr/local/bin/foreachwikiindblist /home/{os.getlogin()}/{dblist_file} {script}'
command = f'sudo -u www-data /usr/local/bin/foreachwikiindblist /tmp/{dblist_file} {script}'
else:
command = f'sudo -u www-data php {script} --wiki={wiki}'
if args.arguments:
Expand Down

0 comments on commit eaea192

Please sign in to comment.