This is an automated email from the ASF dual-hosted git repository. lfrolov pushed a commit to branch DATALAB-2616 in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git
commit 748daa9c704423d326e0c4fbd8feb389a7eb902a Author: leonidfrolov <[email protected]> AuthorDate: Tue Nov 23 09:36:43 2021 +0200 [DATALAB-2616]: changed how log dir is created and changed its modes of access --- infrastructure-provisioning/src/general/lib/os/logger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infrastructure-provisioning/src/general/lib/os/logger.py b/infrastructure-provisioning/src/general/lib/os/logger.py index de8750d..3477677 100644 --- a/infrastructure-provisioning/src/general/lib/os/logger.py +++ b/infrastructure-provisioning/src/general/lib/os/logger.py @@ -33,7 +33,7 @@ try: except: os.environ['conf_resource'] = 'undefined_conf_resource' -subprocess.run('/bin/bash -c -l "sudo mkdir -p /logs/{0}/"; sudo chmod a+rwx /logs/{0}'.format(os.environ['conf_resource']), shell=True) +subprocess.run('/bin/bash -c -l "mkdir -p /logs/{0}/" && chmod a+rwx /logs/{0}'.format(os.environ['conf_resource']), shell=True) local_log_filename = "{}_{}.log".format(os.environ['conf_resource'], os.environ['request_id']) local_log_filepath = "/logs/" + os.environ['conf_resource'] + "/" + local_log_filename --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
