systemd generator: adapt to changed config API
Change-Id: Idb2527b7007aca3a051c1ec9a2d8eecdb55cacef Reviewed-on: https://forge.frm2.tum.de/review/c/sine2020/secop/playground/+/29535 Tested-by: Jenkins Automated Tests <pedersen+jenkins@frm2.tum.de> Reviewed-by: Enrico Faulhaber <enrico.faulhaber@frm2.tum.de> Reviewed-by: Georg Brandl <g.brandl@fz-juelich.de>
This commit is contained in:
@ -25,16 +25,16 @@
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import fnmatch
|
|
||||||
from os import path
|
from os import path
|
||||||
|
|
||||||
from secop.lib import getGeneralConfig
|
from secop.lib import generalConfig
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
normal_dir = sys.argv[1]
|
normal_dir = sys.argv[1]
|
||||||
|
|
||||||
global_config = getGeneralConfig()
|
generalConfig.init()
|
||||||
config_dir = global_config['confdir']
|
config_dir = generalConfig['confdir']
|
||||||
|
|
||||||
secop_unit = '/lib/systemd/system/secop@.service'
|
secop_unit = '/lib/systemd/system/secop@.service'
|
||||||
wants_dir = normal_dir + '/secop.target.wants'
|
wants_dir = normal_dir + '/secop.target.wants'
|
||||||
|
Reference in New Issue
Block a user