blob: 9fe0c8af6f332683fb547357c91d3fcdb39f10b5 [file] [log] [blame]
[Unit]
Description=Restore sysrepo startup datastore from /cfg
After=netopeer2-install-yang.service czechlight-install-yang.service cfg.mount
Requires=netopeer2-install-yang.service czechlight-install-yang.service cfg.mount
Before=netopeer2-setup.service netopeer2.service sysrepo-persistent-cfg.service
ConditionPathExists=/cfg/sysrepo/startup.json
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/bin/sysrepocfg -d startup -f json --import=/cfg/sysrepo/startup.json
ExecStart=/bin/sysrepocfg -C startup
[Install]
WantedBy=multi-user.target