Overhaul some things to support a basic CORE Office install

This commit is contained in:
Lance Edgar 2018-05-31 20:42:57 -05:00
parent a84d360509
commit 2c5e073168
5 changed files with 52 additions and 23 deletions

View file

@ -112,6 +112,8 @@ def put(local_path, remote_path, owner='root:root', **kwargs):
kwargs.setdefault('mirror_local_mode', True)
kwargs['use_sudo'] = True
fab_put(local_path, remote_path, **kwargs)
if ':' not in owner:
owner = '{}:'.format(owner)
sudo("chown {} '{}'".format(owner, remote_path))