brickbots / PiFinder

A plate solving telescope finder based around a Raspberry PI and RPI HQ Camera
GNU General Public License v3.0
145 stars 28 forks source link

When changing hostname, also change /etc/hosts #125

Open mrosseel opened 6 months ago

mrosseel commented 6 months ago

When changing the hostname via the web UI, the file /etc/hostname is changed correctly, but not the /etc/hosts. This results in errors when ssh'ing into the pifinder and executing sudo commands.

brickbots commented 5 months ago

I'll test and make sure this is taken care of in the Bookworm release. I've re-written most of these system related functions and the way the hostname is changed is different.