1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-03-21 18:50:38 +03:00

Run GPO applier as /usr/sbin/gpoa

This commit is contained in:
Evgeny Sinelnikov 2019-11-17 19:01:19 +04:00
parent 1cd0ab28f3
commit 5f3ab7be30

View File

@ -16,8 +16,7 @@ import sys
import re
class gpoa:
_gpoa_dir = '/usr/libexec/gpoa'
_gpoa_exe = 'main.py'
_gpoa_exe = '/usr/sbin/gpoa'
def __init__(self, username):
self._user = username
@ -26,14 +25,11 @@ class gpoa:
'''
Call gpoa utility to generate scripts
'''
gpoa_cmd = ['./{}'.format(self._gpoa_exe), self._user]
cwd = os.getcwd()
gpoa_cmd = [self._gpoa_exe, self._user]
os.chdir(self._gpoa_dir)
print('Running gpoa')
output = subprocess.call(gpoa_cmd)
print(output)
os.chdir(cwd)
sys.exit(output)
def parse_cli_arguments():