From 23c20842c377e57945081cf800244f15014d3e8b Mon Sep 17 00:00:00 2001 From: betateilchen Date: Sun, 2 Nov 2025 17:58:15 +0000 Subject: [PATCH] postinst: prevent error message due to nonexistent sources.list git-svn-id: https://svn.fhem.de/fhem/trunk@30476 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/DEBIAN/postinst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fhem/contrib/DEBIAN/postinst b/fhem/contrib/DEBIAN/postinst index 158140f36..a84bc79ee 100644 --- a/fhem/contrib/DEBIAN/postinst +++ b/fhem/contrib/DEBIAN/postinst @@ -12,7 +12,9 @@ chown -R fhem:dialout /opt/fhem # remove repository entry after first installation echo "removing repo from sources" +if [ -f /etc/apt/sources.list ]; then sed -i /debian.fhem.de/d /etc/apt/sources.list +fi if [ -f /etc/apt/sources.list.d/debianfhemde.list ]; then rm /etc/apt/sources.list.d/debianfhemde.list fi