mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
We should be changing permissions, not ownership.
This commit is contained in:
parent
6ae4332aac
commit
4d1c583323
@ -531,8 +531,8 @@ def deploy_script(host, port=22, timeout=900, username='root',
|
||||
root_cmd('service sshd restart', tty, sudo, **kwargs)
|
||||
|
||||
root_cmd(
|
||||
'[ ! -d {0} ] && (mkdir -p {0}; chown 700 {0}) || '
|
||||
'echo "Directory {0!r} already exists..."'.format(tmp_dir),
|
||||
'[ ! -d {0} ] && (mkdir -p {0}; chmod 700 {0}) || '
|
||||
'echo "Directory {0} already exists..."'.format(tmp_dir),
|
||||
tty, sudo, **kwargs
|
||||
)
|
||||
if sudo:
|
||||
|
Loading…
Reference in New Issue
Block a user