• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Upgrade to jessie+pilight+kernel failed
#11
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
Code:
sudo apt-get remove pilight
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
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
the only change I had to do to my config.json was to replace
Code:
"webserver-root": "/usr/local/share/pilight/",
with
Code:
"webserver-root": "/usr/local/share/pilight/webgui",
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 ...
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  pilight for Raspbian Buster (raspberry pi 4) ? starob 31 7,265 08-04-2020, 06:57 PM
Last Post: PPacman
  After upgrade to 8.1.5 "433gpio pulse buffer full" bodo 4 263 07-28-2020, 08:46 PM
Last Post: felfert
  pilight switch node in node-red framp 0 234 06-24-2020, 10:01 PM
Last Post: framp
  pilight-control TML 13 900 05-27-2020, 07:51 AM
Last Post: curlymo
  API Requests by HTTP from other devices fore use in pilight scootermacro 2 411 05-10-2020, 08:19 AM
Last Post: scootermacro
  pilight-send seems successful but doesn't actually send RF signal ayeyebrazov 37 3,116 03-31-2020, 01:02 PM
Last Post: curlymo
  pilight 8.1.5 not working on Raspberry pi after reboot beejayf 4 852 03-08-2020, 12:14 AM
Last Post: beejayf
  ERROR: failed to read config. stack: 2 Stefan 6 564 02-03-2020, 09:37 PM
Last Post: curlymo
  pilight cpu usage possibly associated with noticeable sluggishness? hepcat72 4 905 01-28-2020, 08:02 PM
Last Post: hepcat72
  apt.pilight.org stable Release' is not signed. thomasol 2 941 01-23-2020, 11:34 PM
Last Post: thomasol

Forum Jump:


Browsing: 1 Guest(s)