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
This commit is contained in:
Zedifus 2022-03-02 16:22:53 +00:00
parent 7be5cfa449
commit 8f0ac0d025

View File

@ -440,7 +440,7 @@ class Controller:
new_id = self.register_server(server_name, server_id, new_server_dir, backup_path, server_command, server_exe, 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') 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 return new_id
def import_bedrock_zip_server(self, server_name: str, zip_path: str, server_exe: str, port: int): 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, 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') 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 return new_id
#************************************************************************************************ #************************************************************************************************