We should be changing permissions, not ownership.

This commit is contained in:
Pedro Algarvio 2013-11-24 10:56:07 +00:00
parent 6ae4332aac
commit 4d1c583323

View File

@ -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: