blob: 56acbc50b7179adc3694a6fc1f3f712f7a67a787 [file] [log] [blame]
Chris Cain7bd6d142023-01-11 13:41:09 -06001unit_files = [
2 'org.open_power.OCC.Control.service',
3 'op-occ-disable@.service',
4 'op-occ-enable@.service'
5]
6
George Liufa106212023-08-16 14:20:01 +08007fs = import('fs')
Chris Cain7bd6d142023-01-11 13:41:09 -06008foreach u : unit_files
George Liufa106212023-08-16 14:20:01 +08009 fs.copyfile(
10 u,
Chris Cain7bd6d142023-01-11 13:41:09 -060011 install: true,
George Liufa106212023-08-16 14:20:01 +080012 install_dir: systemd_system_unit_dir
13 )
Chris Cain7bd6d142023-01-11 13:41:09 -060014endforeach