summaryrefslogtreecommitdiff
path: root/data/templates/dhcp-server
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2023-09-05 08:52:38 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2023-09-05 08:52:38 +0000
commitc9251df704645e679e0e21d5c9179fefe96ccc99 (patch)
treea03f14e403179ac3324b9cb397b340b700ecd833 /data/templates/dhcp-server
parentc07055258b853de641d2a1353582800b24c514d2 (diff)
downloadvyos-1x-c9251df704645e679e0e21d5c9179fefe96ccc99.tar.gz
vyos-1x-c9251df704645e679e0e21d5c9179fefe96ccc99.zip
T2958: Fix path for leases to config directory
The leases path should be in `/config` directory to save leases between reboots. The typo was in this commit c07055258b853de641d2a1353582800b24c514d2 Before this the idea was to get leases from `/run` directory only for livecd images. But then we added `/config` directory for livecd. PR was modified and incorrect variable directory `/run` was used. Fix it.
Diffstat (limited to 'data/templates/dhcp-server')
-rw-r--r--data/templates/dhcp-server/10-override.conf.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/dhcp-server/10-override.conf.j2 b/data/templates/dhcp-server/10-override.conf.j2
index dd5730b90..1504b6808 100644
--- a/data/templates/dhcp-server/10-override.conf.j2
+++ b/data/templates/dhcp-server/10-override.conf.j2
@@ -1,5 +1,5 @@
### Autogenerated by dhcp_server.py ###
-{% set lease_file = '/run/dhcp-server/dhcpd.leases' %}
+{% set lease_file = '/config/dhcpd.leases' %}
[Unit]
Description=ISC DHCP IPv4 server
Documentation=man:dhcpd(8)