def run(): ensure_user(USER_NAME, USER_ID, GROUP_NAME, GROUP_ID) ensure_dir(PGDATA_PARENT, permission_str='777') ensure_dir(SOCKET_DIR, permission_str='777') ensure_dir(BACKUP_DIR, permission_str='777') copyfile('/postgresql.conf', CONF_FILE, owner=USER_NAME, group=GROUP_NAME, permission_str='400') copyfile('/pg_hba.conf', HBA_FILE, owner=USER_NAME, group=GROUP_NAME, permission_str='400') substitute(CONF_FILE, {'SOCKET_DIR': SOCKET_DIR, 'HBA_FILE': HBA_FILE})
def run(): ensure_user(USER_NAME, USER_ID, GROUP_NAME, GROUP_ID) # PIP_COMMAND = getvar('PIP_COMMAND') # subprocess.call([PIP_COMMAND, 'install', '/pygments-lexer-babylon']) os.chdir('/pygments-lexer-babylon')
def run(): ensure_user(USER_NAME, USER_ID, GROUP_NAME, GROUP_ID)