mirror of
https://github.com/netdata/netdata.git
synced 2025-04-22 12:32:32 +00:00
Revert "Handle conffiles for DEB packages explicitly instead of automatically." (#14700)
Revert "Handle conffiles for DEB packages explicitly instead of automatically. (#14662)"
This reverts commit 95ccc9cd47
.
This commit is contained in:
parent
cf85c3b0e9
commit
1c53c7b311
2 changed files with 0 additions and 23 deletions
contrib/debian
|
@ -1,4 +0,0 @@
|
|||
/etc/default/netdata
|
||||
/etc/init.d/netdata
|
||||
/etc/logrotate.d/netdata
|
||||
/etc/netdata/netdata.conf
|
|
@ -127,25 +127,6 @@ override_dh_installlogrotate:
|
|||
cp system/logrotate/netdata debian/netdata.logrotate
|
||||
dh_installlogrotate
|
||||
|
||||
override_dh_installdeb:
|
||||
dh_installdeb
|
||||
@echo "Recreating conffiles without auto-adding /etc files"
|
||||
@for dir in ${CURDIR}/debian/*/DEBIAN; do \
|
||||
PKG=$$(basename $$(dirname $$dir)); \
|
||||
FILES=""; \
|
||||
if [ -f ${CURDIR}/debian/conffiles ]; then \
|
||||
FILES="${CURDIR}/debian/conffiles"; \
|
||||
fi; \
|
||||
if [ -f ${CURDIR}/debian/$${PKG}.conffiles ]; then \
|
||||
FILES="$$FILES ${CURDIR}/debian/$${PKG}.conffiles"; \
|
||||
fi; \
|
||||
if [ -n "$$FILES" ]; then \
|
||||
cat $$FILES | sort -u > $$dir/conffiles; \
|
||||
elif [ -f $$dir/conffiles ]; then \
|
||||
rm $$dir/conffiles; \
|
||||
fi; \
|
||||
done
|
||||
|
||||
override_dh_clean:
|
||||
dh_clean
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue