ublue-os / fleek

[deprecated] Own your $HOME
https://getfleek.dev
Apache License 2.0
831 stars 27 forks source link

Fleek join on previously registered system deletes config #368

Open mtalexan opened 8 months ago

mtalexan commented 8 months ago

Describe the bug
I had to rebuild and reinstall a system that had fleek installed and running on it previously. After the fresh OS install, which used the same hostname and had all the same credentials and git settings, I did fleek join to get fleek re-installed and setup. It prompted for name and email, which I entered the same as what was already in my fleek config for the hostname, but after the fleek join completed it had wiped my settings for that hostname.

To Reproduce

  1. Install fleek on a system.
  2. Enable auto commit and auto push
  3. Add any customization to the ~/.local/share/fleek/$(hostname)/customize.nix file
  4. Create a new system with the same hostname and gitconfig and install fleek on it. Use the same name and email address as before when prompted.
  5. Look at the ~/.local/share/fleek/$(hostname)/customize.nix
  6. Notice the customization from step 3 is gone
  7. Check the git commit history and see that the "new system" overwrote the customized file

Expected behavior Re-installing fleek on a system that used to have it uses the existing config in the fleek config repo and doesn't overwrite it.

Environment

Additional context

I question whether the "Ephemeral System" instructions would work either since that's basically the same case. Trying to do a fleek join to an existing "hostname" that's already present in the config.