Skip to content

Commit

Permalink
Fixing the permissions for Log directories (#1275)
Browse files Browse the repository at this point in the history
  • Loading branch information
vrdmr authored and hglkrijger committed Aug 2, 2018
1 parent 7953c5a commit 63a0556
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion azurelinuxagent/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
PY_VERSION_MAJOR, PY_VERSION_MINOR, \
PY_VERSION_MICRO, GOAL_STATE_AGENT_VERSION
from azurelinuxagent.common.osutil import get_osutil
from azurelinuxagent.common.utils import fileutil

class Agent(object):
def __init__(self, verbose, conf_file_path=None):
Expand Down Expand Up @@ -73,7 +74,7 @@ def __init__(self, verbose, conf_file_path=None):
if os.path.isfile(ext_log_dir):
raise Exception("{0} is a file".format(ext_log_dir))
if not os.path.isdir(ext_log_dir):
os.makedirs(ext_log_dir)
fileutil.mkdir(ext_log_dir, mode=0o755, owner="root")
except Exception as e:
logger.error(
"Exception occurred while creating extension "
Expand Down

0 comments on commit 63a0556

Please sign in to comment.