[Kimchi-devel] [PATCH 3/3] Remove directories under /var/lib/kimchi if empty on ubuntu

Ramon Medeiros ramonn at linux.vnet.ibm.com
Tue Dec 16 18:14:36 UTC 2014


Add the directory structure in the buildroot. Dpkg automatically removes
empty directories.

Signed-off-by: Ramon Medeiros <ramonn at linux.vnet.ibm.com>
---
 Makefile.am | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/Makefile.am b/Makefile.am
index 62b10fc..36e12d0 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -68,6 +68,11 @@ all-local:
 
 install-deb: install
 	cp -R $(top_srcdir)/contrib/DEBIAN $(DESTDIR)/
+	mkdir -p $(DESTDIR)/var/lib/kimchi/debugreports
+	mkdir -p $(DESTDIR)/var/lib/kimchi/screenshots
+	mkdir -p $(DESTDIR)/var/lib/kimchi/vnc-tokens
+	mkdir -p $(DESTDIR)/var/lib/kimchi/isos
+	touch $(DESTDIR)/var/lib/kimchi/objectstore
 	$(MKDIR_P) $(DESTDIR)/etc/init
 	$(MKDIR_P) $(DESTDIR)/usr/lib/firewalld/services
 	cp -R $(top_srcdir)/contrib/kimchid-upstart.conf.debian \
-- 
1.8.3.1




More information about the Kimchi-devel mailing list