move etc/ebusd creation to top level only, avoid deb error for empty etc/ebusd

This commit is contained in:
John
2022-04-10 18:03:06 +02:00
parent 4aa2181417
commit e8e7772dbb
3 changed files with 4 additions and 7 deletions
+1 -1
View File
@@ -140,7 +140,7 @@ EOF
cat <<EOF > $RELEASE/DEBIAN/conffiles
/etc/default/ebusd
EOF
if [ -d "$RELEASE/etc/ebusd" ]; then
if ls $RELEASE/etc/ebusd/* >/dev/null 2>&1 ; then
echo '/etc/ebusd' >> $RELEASE/DEBIAN/dirs
(cd $RELEASE && for i in etc/ebusd/*; do echo "/$i"; done) >> $RELEASE/DEBIAN/conffiles
fi