bhampton afiadam
To add to this I realized I ALSO did this all under the "root" user. When I went to go check for updates today I received the same error I initially had. I had to redo the steps I outlined earlier BUT I had to do it as the www-data user.
If you have trouble switching to the www-data user as I did, you'll need to do the following:
Switch into the root user and enter your root password after running this command:
su -
From here you won't be able login as www-data as its essentially set as a 'non-logon' user, to circumvent this you can run the following code:
sudo su www-data -s /bin/bash
The above command essentially opens the bash terminal in the context of the user www-data, which then shows in your terminal as if you were logged in as the www-data user.
Now from here do the following steps again:
Prerequisite: Before proceeding make sure www-data has perms to the /var/www folder (You may have to switch back the root user to give permission before proceeding.)
- Delete the .git directory:
rm -rf .git
- Run this command:
git init
- Point the directory to the git repository:
git remote add origin https://github.com/itflow-org/itflow.git
- Run this command:
git fetch
- Run this command:
git reset --hard origin/master
- Login to ITFlow instance - check to see if warning has disappeared under "Update" settings
Hope this helps anyone who is unable to update through the webapp itself!