def chgrp(path, group): run(['chgrp', group, path])
def useradd(*args): # FIXME: this is a bad way to do things # FIXME: sigh. this is going to be a pain to make it idempotent run(['useradd'] + list(args))
def usermod(*args): # FIXME: this is a bad way to do things run(['usermod'] + list(args))
def ln(*args): run(['ln'] + list(args))
def mkdir(path, mode=None): if mode: run(['mkdir', '-m', mode, path]) else: run(['mkdir', path])
def groupadd(*args): run(['groupadd'] + list(args))
def chmod(*args): # FIXME: this is ugly, name the args run(['chmod'] + list(args))
def chown(path, user): run(['chown', user, path])
def systemctl(*args: Tuple[str, ...]) -> None: run(['systemctl'] + list(args))
def download(url, output): # FIXME: communicate success or failure run(['curl', '-L', url, '-o', output])