vps
vps copied to clipboard
Updating sub1x nodes does not work
when trying to update a masternode using the command:
./install.sh -p sub1x -u
It does not to pull the latest code from their master branch, but instead reinstalls the old versions. The script debug log shows these entries:
> error: The following untracked working tree files would be overwritten by merge:
> Makefile
> Makefile.in
> aclocal.m4
> config.log
> config.status
> configure
> libtool
> Please move or remove them before you can merge.
> Aborting
> Updating bda3ba0..881154d
> Already on 'master'
> M autogen.sh
> M share/genbuild.sh
> Your branch is behind 'origin/master' by 6 commits, and can be fast-forwarded.
> (use "git pull" to update your local branch)
Looks like there are changed files in the git, which prevents a new pull.
After removing/renaming the Folder vps/code/sub1x it works.
Would it make sense to use a git reset --hard HEAD, before the git pull on update? https://github.com/masternodes/vps/blob/master/install.sh#L521
Hmm, very weird. I will look into it!