Example #1
0
def chgrp(path, group):
    run(['chgrp', group, path])
Example #2
0
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))
Example #3
0
def usermod(*args):
    # FIXME: this is a bad way to do things
    run(['usermod'] + list(args))
Example #4
0
def ln(*args):
    run(['ln'] + list(args))
Example #5
0
def mkdir(path, mode=None):
    if mode:
        run(['mkdir', '-m', mode, path])
    else:
        run(['mkdir', path])
Example #6
0
def groupadd(*args):
    run(['groupadd'] + list(args))
Example #7
0
def chmod(*args):		
    # FIXME: this is ugly, name the args		
    run(['chmod'] + list(args))
Example #8
0
def chown(path, user):
    run(['chown', user, path])
Example #9
0
def systemctl(*args: Tuple[str, ...]) -> None:
    run(['systemctl'] + list(args))
Example #10
0
 def download(url, output):
     # FIXME: communicate success or failure
     run(['curl', '-L', url, '-o', output])