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>
This commit is contained in:
Andrea Galbusera
2017-04-12 15:25:58 +02:00
committed by Joe MacDonald
parent eb0a49cc9c
commit 07e8b8ebe3
2 changed files with 2 additions and 1 deletions
@@ -1 +1 @@
d /var/run/openvpn 0755 root root -
d @LOCALSTATEDIR@/run/openvpn 0755 root root -
@@ -50,6 +50,7 @@ do_install_append() {
install -d ${D}${sysconfdir}/tmpfiles.d
install -m 0644 ${WORKDIR}/openvpn-volatile.conf ${D}${sysconfdir}/tmpfiles.d/openvpn.conf
sed -i -e 's#@LOCALSTATEDIR@#${localstatedir}#g' ${D}${sysconfdir}/tmpfiles.d/openvpn.conf
fi
}