mediawiki: Remove Buster specific code not needed in Bullseye

Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
nbenedek 2022-06-23 22:08:50 +02:00 committed by Sunil Mohan Adapa
parent 402b5594aa
commit 9ca56c728e
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -104,7 +104,6 @@ def subcommand_setup(_):
subprocess.run(['chmod', '-R', 'o-rwx', data_dir], check=True)
subprocess.run(['chown', '-R', 'www-data:www-data', data_dir], check=True)
include_custom_config()
_fix_non_private_mode()
def include_custom_config():
@ -134,21 +133,6 @@ def include_custom_config():
conf_file.writelines(lines)
def _fix_non_private_mode():
"""Drop the line that allows editing by anonymous users.
Remove this fix after the release of Debian 11.
"""
with open(CONF_FILE, 'r') as conf_file:
lines = conf_file.readlines()
with open(CONF_FILE, 'w') as conf_file:
for line in lines:
if not line.startswith("$wgGroupPermissions['*']['edit']"):
conf_file.write(line)
def subcommand_change_password(arguments):
"""Change the password for a given user"""
new_password = ''.join(sys.stdin)