예제 #1
0
파일: __main__.py 프로젝트: minacel/anvil
def ensure_perms():
    # Ensure we are running as root to start...
    if not sh.got_root():
        raise excp.PermException("Root access required")
예제 #2
0
def ensure_perms():
    # Ensure we are running as root to start...
    if not sh.got_root():
        raise excp.PermException("Root access required")
    # Drop to usermode (which also ensures we can do this...)
    sh.user_mode(quiet=False)
예제 #3
0
def ensure_perms():
    # Ensure we are running as root to start...
    if not sh.got_root():
        raise excp.PermException("Root access required")
예제 #4
0
def ensure_perms():
    # Ensure we are running as root to start...
    if not sh.got_root():
        raise excp.PermException("Root access required")
    # Drop to usermode (which also ensures we can do this...)
    sh.user_mode(quiet=False)