diff options
author | Andrea Galbusera <gizero@gmail.com> | 2017-04-12 15:25:58 +0200 |
---|---|---|
committer | Joe MacDonald <joe_macdonald@mentor.com> | 2017-04-25 15:55:37 -0400 |
commit | 07e8b8ebe3382709e697131a937b1c7af8d9b82c (patch) | |
tree | b13cf9b1290f0cac113270c70837c60b27d8895c /meta-networking/recipes-support/openvpn | |
parent | eb0a49cc9ce4e5aa66e7168ab733974179ce1848 (diff) | |
download | meta-openembedded-07e8b8ebe3382709e697131a937b1c7af8d9b82c.tar.gz |
openvpn: openvpn-volatile.conf: avoid hardcoded localstatedir
Signed-off-by: Andrea Galbusera <gizero@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Diffstat (limited to 'meta-networking/recipes-support/openvpn')
-rw-r--r-- | meta-networking/recipes-support/openvpn/openvpn/openvpn-volatile.conf | 2 | ||||
-rw-r--r-- | meta-networking/recipes-support/openvpn/openvpn_2.3.9.bb | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/meta-networking/recipes-support/openvpn/openvpn/openvpn-volatile.conf b/meta-networking/recipes-support/openvpn/openvpn/openvpn-volatile.conf index 4a3dc4a46..1205806d5 100644 --- a/meta-networking/recipes-support/openvpn/openvpn/openvpn-volatile.conf +++ b/meta-networking/recipes-support/openvpn/openvpn/openvpn-volatile.conf | |||
@@ -1 +1 @@ | |||
d /var/run/openvpn 0755 root root - | d @LOCALSTATEDIR@/run/openvpn 0755 root root - | ||
diff --git a/meta-networking/recipes-support/openvpn/openvpn_2.3.9.bb b/meta-networking/recipes-support/openvpn/openvpn_2.3.9.bb index 8dd45669f..8892a9e05 100644 --- a/meta-networking/recipes-support/openvpn/openvpn_2.3.9.bb +++ b/meta-networking/recipes-support/openvpn/openvpn_2.3.9.bb | |||
@@ -50,6 +50,7 @@ do_install_append() { | |||
50 | 50 | ||
51 | install -d ${D}${sysconfdir}/tmpfiles.d | 51 | install -d ${D}${sysconfdir}/tmpfiles.d |
52 | install -m 0644 ${WORKDIR}/openvpn-volatile.conf ${D}${sysconfdir}/tmpfiles.d/openvpn.conf | 52 | install -m 0644 ${WORKDIR}/openvpn-volatile.conf ${D}${sysconfdir}/tmpfiles.d/openvpn.conf |
53 | sed -i -e 's#@LOCALSTATEDIR@#${localstatedir}#g' ${D}${sysconfdir}/tmpfiles.d/openvpn.conf | ||
53 | fi | 54 | fi |
54 | } | 55 | } |
55 | 56 | ||