mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Merge branch 'devops/userns-rootless-container' into 'dev'
Convert container to run as non-root See merge request crafty-controller/crafty-commander!172
This commit is contained in:
@ -451,7 +451,7 @@ class Controller:
|
||||
server_log_file, server_stop, port, server_type='minecraft-bedrock')
|
||||
if os.name != "nt":
|
||||
if helper.check_file_exists(full_jar_path):
|
||||
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):
|
||||
@ -500,7 +500,7 @@ class Controller:
|
||||
server_log_file, server_stop, port, server_type='minecraft-bedrock')
|
||||
if os.name != "nt":
|
||||
if helper.check_file_exists(full_jar_path):
|
||||
os.chmod(full_jar_path, 2775)
|
||||
os.chmod(full_jar_path, 0o2775)
|
||||
|
||||
return new_id
|
||||
|
||||
|
Reference in New Issue
Block a user