From 8f0ac0d025c22cf065de533cf1458344dd6e0f52 Mon Sep 17 00:00:00 2001 From: Zedifus Date: Wed, 2 Mar 2022 16:22:53 +0000 Subject: [PATCH] Fix permissions setting on bedrock imports This is not an issue on java as we dont need the execute perm on .jar's Requires to be prefix'd octal intager for mask not decimal --- app/classes/shared/main_controller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/classes/shared/main_controller.py b/app/classes/shared/main_controller.py index e6c7eb6c..aa025dcf 100644 --- a/app/classes/shared/main_controller.py +++ b/app/classes/shared/main_controller.py @@ -440,7 +440,7 @@ class Controller: new_id = self.register_server(server_name, server_id, new_server_dir, backup_path, server_command, server_exe, server_log_file, server_stop, port, server_type='minecraft-bedrock') - os.chmod(full_jar_path, 2775) + os.chmod(full_jar_path, 0o2775) return new_id def import_bedrock_zip_server(self, server_name: str, zip_path: str, server_exe: str, port: int): @@ -484,7 +484,7 @@ class Controller: new_id = self.register_server(server_name, server_id, new_server_dir, backup_path, server_command, server_exe, server_log_file, server_stop, port, server_type='minecraft-bedrock') - os.chmod(full_jar_path, 2775) + os.chmod(full_jar_path, 0o2775) return new_id #************************************************************************************************