The default installation directory for Shinobi is /home/Shinobi . You should also become root or prefix with sudo to run the following commands.
This article will show you how to switch branches for Shinobi. There are multiple branches but dev and master are the main ones. The dev branch contains all the latest changes that are expected to be stable. The master branch is expected to contain the latest stable build.
1. Navigate to the Shinobi directory.
2. Use git to switch. The following commands will show how to switch to dev.
git checkout dev
If you are getting errors you may need to run the following first.
If you are switching from Dashboard v2 to Dashboard v3 you need to run the following command one time inside the Shinobi folder. After doing so running only UPDATE.sh should be fine unless otherwise instructed.
3. Once switched you will need to restart Shinobi for changes to take effect.
pm2 restart all
cd /home/Shinobi git checkout master pm2 restart all