Use sysconfdir for /etc/fence_virt.conf

Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
This commit is contained in:
Lon Hohberger 2009-09-17 15:21:14 -04:00
parent 9931f5f4e7
commit d8f91dfe3a
2 changed files with 6 additions and 2 deletions

View File

@ -8,6 +8,7 @@ YACC=@YACC@
prefix=@prefix@
exec_prefix=@exec_prefix@
sysconfdir=@sysconfdir@
sbindir=@sbindir@
libdir=@libdir@

View File

@ -48,6 +48,9 @@ clean:
rm -f ${TARGETS} *~ *.o testprog config.tab.c config.tab.h config.c
install:
if [ ! -f ${DESTDIR}/etc/fence_virt.conf ]; then \
install -m 0644 example.conf ${DESTDIR}/etc/fence_virt.conf; \
if [ ! -d ${DESTDIR}/${sysconfdir} ]; then \
install -d ${DESTDIR}/${sysconfdir} ; \
fi
if [ ! -f ${DESTDIR}/${sysconfdir}/fence_virt.conf ]; then \
install -m 0644 example.conf ${DESTDIR}/${sysconfdir}/fence_virt.conf; \
fi