blob: 773f293e73b4d31a72626f6e73363513cfd1ad94 [file] [log] [blame]
Jan Kundrátd7e9cea2018-05-24 18:02:46 +02001[Unit]
Jan Kundrát1e5dfeb2018-09-14 13:40:34 +02002Description=Store NETCONF SSH host keys into /cfg
3After=cfg.mount netopeer2-keystored-init-keys.service
4Requires=cfg.mount netopeer2-keystored-init-keys.service
Jan Kundrátd7e9cea2018-05-24 18:02:46 +02005ConditionPathExists=!/cfg/etc/keystored/keys
6
7[Service]
8Type=oneshot
Jan Kundrát1e5dfeb2018-09-14 13:40:34 +02009ExecStartPre=/bin/mkdir -p /cfg/etc
Jan Kundrátd7e9cea2018-05-24 18:02:46 +020010ExecStart=/bin/cp -a /etc/keystored /cfg/etc/
11
12[Install]
13WantedBy=multi-user.target