Install logrotate files again.
This got broken by moving to separate build-dir. Based on a patch
from Serge Hallyn.
Closes: #647953
Guido Günther
12 years ago
103 | 103 |
update-rc.d -f libvirt-bin remove >/dev/null
|
104 | 104 |
fi
|
105 | 105 |
fi
|
|
106 |
|
|
107 |
# Make sure the directories don't get removed on package removal since
|
|
108 |
# logrotate chokes otherwise.
|
|
109 |
for dir in qemu uml lxc; do
|
|
110 |
touch /var/log/libvirt/"${dir}"/.placeholder
|
|
111 |
done
|
106 | 112 |
;;
|
107 | 113 |
|
108 | 114 |
abort-upgrade|abort-remove|abort-deconfigure)
|
91 | 91 |
dh_installinit --name=libvirt-guests --no-restart-on-upgrade -- defaults 29 71
|
92 | 92 |
|
93 | 93 |
for l in $(LOGROTATE); do \
|
94 | |
cp $(CURDIR)/daemon/$$l.logrotate \
|
|
94 |
cp $(CURDIR)/debian/build/daemon/$$l.logrotate \
|
95 | 95 |
debian/libvirt-bin.$$l.logrotate; \
|
96 | 96 |
dh_installlogrotate --name=$$l; \
|
97 | 97 |
done
|