01-04-2018, 12:27 PM
Thanks for your reply - this motivated me, to run a complete apt-get remove and install pilight 8.0.4 from scratch (no upgrade!):
You are right, the
does not work properly (same for pilight-dbg) (I already faced this issue, but did not want to add this to my initial post).
What you can do before running the "apt-get remove", is to add "exit 0" just before the last "fi" in /var/lib/dpkg/info/pilight.postrm or pilight-dbg.postrm
Clean remove and install:
with
in the "settings"-section.
After this procedure everything works fine (even with pilight v8.04)!!!
So I guess, I also had some issues with not clean removal ...
You are right, the
Code:
sudo apt-get remove pilight
What you can do before running the "apt-get remove", is to add "exit 0" just before the last "fi" in /var/lib/dpkg/info/pilight.postrm or pilight-dbg.postrm
Code:
#!/bin/bash
if [[ $1 == "purge" ]]; then
test -d /etc/pilight && rm -r /etc/pilight 1>/dev/null 2>/dev/null || true;
find /usr/local/lib -name '*pilight*' -exec rm -r {} \; 1>/dev/null 2>/dev/null;
test -d /usr/local/pilight && rm -r /usr/local/pilight || true 1>/dev/null 2>/dev/null;
fi
if [[ $1 == "remove" ]]; then
test -f /etc/init.d/pilight && rm /etc/init.d/pilight;
test -f /etc/init.d/pilight.sh && rm /etc/init.d/pilight.sh;
test -f /etc/systemd/system/pilight.service && rm /etc/systemd/system/pilight.service;
test -f /etc/init/pilight.conf && rm /etc/init/pilight.conf;
exit 0 #<-----
fi
Clean remove and install:
- edit pilight.postrm
- sudo apt-get remove pilight pilight-webgui
- sudo apt-get autoremove
- sudo apt-get install pilight
Code:
"webserver-root": "/usr/local/share/pilight/",
Code:
"webserver-root": "/usr/local/share/pilight/webgui",
After this procedure everything works fine (even with pilight v8.04)!!!
So I guess, I also had some issues with not clean removal ...