Skip to content

Commit

Permalink
Update fix_container_permissions.py
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
RhinosF1 and coderabbitai[bot] authored May 18, 2024
1 parent 76c084b commit d41113c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion miraheze/swift/fix_container_permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def fix_container_perms(wiki: str) -> None:
for match in matches:
subprocess.run(['swift', 'post', '--read-acl', 'mw:media', '--write-acl', 'mw:media', f'miraheze-{wiki}-{match}'], check=True)

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}')
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])


def main() -> None:
Expand Down

0 comments on commit d41113c

Please sign in to comment.