postinst: prevent error message due to nonexistent sources.list

git-svn-id: https://svn.fhem.de/fhem/trunk@30476 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen
2025-11-02 17:58:15 +00:00
parent fee964933b
commit 23c20842c3

View File

@@ -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