mariusmotea / diyHue

Philips Hue emulator that is able to control multiple types of lights
Other
627 stars 107 forks source link

Updated migrate script to include moving git repos. #466

Closed shbatm closed 5 years ago

shbatm commented 5 years ago

I made a small update to the migrate.sh script for people that have cloned the full git repo. It will split the old repo into the new 3 and add the new tracking info.

ghost commented 5 years ago

Thanks for this. One question, line 3 pulls the current working directory, so surely for this to work, this needs to be run from the installation dir. Am I correct with this assumption? It's not a problem, I just need to update the instructions in README.md

shbatm commented 5 years ago

Yes, it has to be run from wherever you have the repo cloned, which depending on when you started using this project may be different than /opt. I didn't want to guess where people had it.

Maybe for the README:

To migrate your existing install to the new repo:

  1. If you used easy_install.sh, please run the following command:
    curl -s https://raw.githubusercontent.com/mariusmotea/diyHue/master/migrate.sh | sudo bash /dev/stdin
  2. If you used git to clone the repo, pull the latest version of this repo, navigate to your repo directory, and run:
    chmod +x migrate.sh
    ./migrate.sh
  3. If you used Docker, please just pull the latest image.
shbatm commented 5 years ago

I would also suggest that you replace the easy_install.sh script in this repo with the one you updated in the new repo. That way if people do run the script from here (or run it from the old repo if they have it cloned) it will update everything from the new repo.