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