diff --git a/fhem/contrib/DEBIAN/postinst b/fhem/contrib/DEBIAN/postinst index 438413a4a..52732efa1 100644 --- a/fhem/contrib/DEBIAN/postinst +++ b/fhem/contrib/DEBIAN/postinst @@ -11,7 +11,11 @@ fi chown -R fhem:dialout /opt/fhem # remove repository entry after first installation +echo "removing repo from sources" sed -i /debian.fhem.de/d /etc/apt/sources.list +if [ -f /etc/apt/sources.list.d/debianfhemde.list ] then + rm /etc/apt/sources.list.d/debianfhemde.list +fi # set up of autostart # systemd: supported