mirror of
https://github.com/yggdrasil-network/yggdrasil-go
synced 2024-11-09 23:20:26 +03:00
14 lines
412 B
Plaintext
14 lines
412 B
Plaintext
|
[Unit]
|
||
|
Description=Yggdrasil default config generator
|
||
|
ConditionPathExists=|!/etc/yggdrasil/yggdrasil.conf
|
||
|
ConditionFileNotEmpty=|!/etc/yggdrasil/yggdrasil.conf
|
||
|
Wants=local-fs.target
|
||
|
After=local-fs.target
|
||
|
|
||
|
[Service]
|
||
|
Type=oneshot
|
||
|
Group=yggdrasil
|
||
|
ExecStartPre=/usr/bin/mkdir -p /etc/yggdrasil
|
||
|
ExecStart=/usr/bin/yggdrasil -genconf > /etc/yggdrasil/yggdrasil.conf
|
||
|
ExecStartPost=/usr/bin/chmod -R 0640 /etc/yggdrasil
|