mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
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:
parent
7be5cfa449
commit
8f0ac0d025
@ -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
|
||||||
|
|
||||||
#************************************************************************************************
|
#************************************************************************************************
|
||||||
|
Loading…
Reference in New Issue
Block a user