Jan Kundrát | d7e9cea | 2018-05-24 18:02:46 +0200 | [diff] [blame] | 1 | [Unit] |
Jan Kundrát | 1e5dfeb | 2018-09-14 13:40:34 +0200 | [diff] [blame] | 2 | Description=Store NETCONF SSH host keys into /cfg |
| 3 | After=cfg.mount netopeer2-keystored-init-keys.service |
| 4 | Requires=cfg.mount netopeer2-keystored-init-keys.service |
Jan Kundrát | d7e9cea | 2018-05-24 18:02:46 +0200 | [diff] [blame] | 5 | ConditionPathExists=!/cfg/etc/keystored/keys |
| 6 | |
| 7 | [Service] |
| 8 | Type=oneshot |
Jan Kundrát | 1e5dfeb | 2018-09-14 13:40:34 +0200 | [diff] [blame] | 9 | ExecStartPre=/bin/mkdir -p /cfg/etc |
Jan Kundrát | d7e9cea | 2018-05-24 18:02:46 +0200 | [diff] [blame] | 10 | ExecStart=/bin/cp -a /etc/keystored /cfg/etc/ |
| 11 | |
| 12 | [Install] |
| 13 | WantedBy=multi-user.target |