I have created a GitHub repository with a number of bash scripts I use to manage Profit Trailer (PT) on my VPS running Ubuntu 17.10. Profit Trailer (PT) is a cryptocurrency trading bot.
The repository contains the following scripts:
- Deploy script (deploy-scripts.sh)
- PT upgrade (ptm-upgrade.sh)
What the scripts do is described briefly in the following sections. Please refer to the read me file in the repository for more information.
1. Deploy scripts (deploy-scripts.sh)
This script deploys the management scripts to each Profit Trailer (PT) instances, so each instance has the latest versions of the scripts. This means you can use git clone and pull to keep the scripts up to date. When a new version is available, just do a pull to sync and then call this script to deploy it to each PT instances.
2. PT upgrade (pt-upgrade.sh)
Upgrades a Profit Trailer (PT) instance to the latest version. It downloads the latest version of PT from GitHub and installs it to a new directory and copies the existing data, config files and scripts over from the currently installed version. This script must be run from inside the directory of the current PT instance you wish to upgrade. If the latest version is already installed it will display a warning message and exit.
These scripts make upgrading PT a breeze. I hope you find them helpful.
If you liked this post, you might be interested in the following posts.