Browse Source

Remove the umask requirement, set the proper permissions to base_path

ssh_callback
Arkaitz Jimenez 10 years ago committed by Nico Schottelius
parent
commit
9dcad37acf
  1. 4
      cdist/exec/remote.py

4
cdist/exec/remote.py vendored

@ -60,6 +60,7 @@ class Remote(object):
def create_files_dirs(self):
self.rmdir(self.base_path)
self.mkdir(self.base_path)
self.run(["/bin/chmod", "700", self.base_path])
self.mkdir(self.conf_path)
def rmdir(self, path):
@ -100,9 +101,6 @@ class Remote(object):
cmd = self._exec.split()
cmd.append(self.target_host)
# Always call umask before actual call to ensure proper file permissions
cmd.append("umask 077;")
# FIXME: replace this by -o SendEnv name -o SendEnv name ... to ssh?
# can't pass environment to remote side, so prepend command with
# variable declarations

Loading…
Cancel
Save