While upgrades are generally safe and it's very unlikely that it would result in data loss, it's your responsability to have a proper backup of your ProfitTrailer folder in case something goes wrong.
DO NOT follow the steps below if you are upgrading from V1, the steps below are for incremental upgrades to recent releases.
- Download the latest version of ProfitTrailer.
1.1 https://github.com/taniman/profit-trailer/releases
- Check the release notes and the Changes Since Last Release (preferably all release notes between your version and the one you downloaded). This is to see if there are version specific instructions like settings getting renamed or new settings added. Depending on this you have to alter your settings files or not.
- Stop the bot by pressing the Stop ProfitTrailer button in the GUI
- Replace ProfitTrailer.jar in currently installed ProfitTrailer folder with the one from the latest downloaded version.
- Restart your updated ProfitTrailer Bot.
ProfitTrailer comes with an update script for pm2 users. This script automates and simplifies the update process for you.
- Change the working directory to the location of the script (Assuming it's in the directory below).
cd /var/opt
- The script needs to have execute permission to run, if it doesn't already have it you can run the following command to give the script execute permissions.
chmod +x linux-update.sh
- Execute the script. (Assuming the file is called linux-update.sh)
./linux-update.sh
# Note: if you get the following error, try running the commands below
# ERROR: Invalid or incomplete multibyte or wide character
export LC_ALL=en_US.UTF-8
./linux-update.sh
- The script will walk you through the setup/update process. It only needs to set up one time unless you are changing the bots you want to update. After that it will remember your saved setup.