From 955174bf06ad4b16c843ae28b43a2c6486518179 Mon Sep 17 00:00:00 2001 From: CosmicAlpha Date: Fri, 9 Feb 2024 15:27:13 -0700 Subject: [PATCH] fix_container_permissions: use 1.41 --- miraheze/swift/fix_container_permissions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/miraheze/swift/fix_container_permissions.py b/miraheze/swift/fix_container_permissions.py index ac6a22e..023d0e8 100644 --- a/miraheze/swift/fix_container_permissions.py +++ b/miraheze/swift/fix_container_permissions.py @@ -9,10 +9,10 @@ wiki = sys.argv[1] -out = subprocess.run(['sudo', '-u', 'www-data', 'php', '/srv/mediawiki/1.40/maintenance/run.php', '/srv/mediawiki/1.40/extensions/CreateWiki/maintenance/setContainersAccess.php', '--wiki', wiki], capture_output=True, text=True) +out = subprocess.run(['sudo', '-u', 'www-data', 'php', '/srv/mediawiki/1.41/maintenance/run.php', '/srv/mediawiki/1.41/extensions/CreateWiki/maintenance/setContainersAccess.php', '--wiki', wiki], capture_output=True, text=True) matches = re.findall(r"Making sure 'mwstore:\/\/miraheze-swift\/([^']+)' [^\n]+\.failed\.", out.stdout) for match in matches: os.system(f"swift post --read-acl 'mw:media' --write-acl 'mw:media' miraheze-{wiki}-{match}") -os.system(f"sudo -u www-data php /srv/mediawiki/1.40/maintenance/run.php /srv/mediawiki/1.40/extensions/CreateWiki/maintenance/setContainersAccess.php --wiki {wiki}") +os.system(f"sudo -u www-data php /srv/mediawiki/1.41/maintenance/run.php /srv/mediawiki/1.41/extensions/CreateWiki/maintenance/setContainersAccess.php --wiki {wiki}")