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:
Georg Brandl
2022-10-20 14:48:46 +02:00
parent 3ac8b4e255
commit 340c031f46

View File

@ -25,16 +25,16 @@
import os
import sys
import fnmatch
from os import path
from secop.lib import getGeneralConfig
from secop.lib import generalConfig
def main():
normal_dir = sys.argv[1]
global_config = getGeneralConfig()
config_dir = global_config['confdir']
generalConfig.init()
config_dir = generalConfig['confdir']
secop_unit = '/lib/systemd/system/secop@.service'
wants_dir = normal_dir + '/secop.target.wants'