mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-08 17:39:24 +00:00
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:
committed by
Joe MacDonald
parent
eb0a49cc9c
commit
07e8b8ebe3
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user