Mini Shell

Direktori : /proc/thread-self/root/proc/self/root/opt/support/lib/
Upload File :
Current File : //proc/thread-self/root/proc/self/root/opt/support/lib/server.py

from pathlib import Path

try:
    ROLE = Path('/etc/server.role').read_text(encoding='ascii').rstrip()
except FileNotFoundError:
    ROLE = ''

if ROLE == 'shared:hub':
    MAIN_RESELLER = 'hubhost'
elif ROLE.startswith('shared:'):
    MAIN_RESELLER = 'inmotion'
else:  # not a salt minion
    MAIN_RESELLER = 'root'  # v/ded

Zerion Mini Shell 1.0