diff --git a/README.md b/README.md index 0700be2..f4da9b7 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ ## Installation ```sh -curl -vLo install.sh https://git.icedream.tech/icedream/profile/raw/branch/master/home/dotfiles/local/bin/update-profile +curl -vLo install.sh https://code.icedream.tech/icedream/profile/raw/branch/master/home/dotfiles/local/bin/update-profile chmod +x install.sh ./install.sh rm install.sh @@ -12,7 +12,7 @@ rm install.sh or: ```sh -git clone --recursive https://git.icedream.tech/icedream/profile ~/.local/profile-git +git clone --recursive https://code.icedream.tech/icedream/profile ~/.local/profile-git # Installs packages, partially as root through sudo cd ~/.local/profile-git/packages diff --git a/home/dotfiles/local/bin/update-profile b/home/dotfiles/local/bin/update-profile index 82a5230..f4b1f1c 100755 --- a/home/dotfiles/local/bin/update-profile +++ b/home/dotfiles/local/bin/update-profile @@ -30,7 +30,16 @@ if [ ! -d ~/.local/profile-git ]; then ( cd ~/.local/profile-git git init - git remote add origin https://git.icedream.tech/icedream/profile.git + git remote add origin https://code.icedream.tech/icedream/profile.git + ) +else + ( + cd ~/.local/profile-git + case "$(git remote get-url origin)" in + *//git.icedream.tech/*) + git remote set-url origin https://code.icedream.tech/icedream/profile.git + ;; + esac ) fi