Commit Graph

11 Commits

Author SHA1 Message Date
gingerman bb052c0549 Update update.sh
script self update was prompting for overwrite confirmation. forced overwrite
2019-02-22 11:59:52 -03:00
SgtBatten 7aac84905c final patches
- Fixed issue where removing and recreating pm2 processes resulted in pm2 ID changing after some time. Script now uses the process name even if the user configures it using process ID. -  (does require you to go through configuration again to avoid this issue)
- Fixed issue where running the script from within the bot folder resulted in profittrailer.jar being deleted. 
- script can be run without having to cd to the correct directory (i.e /var/opt/linux-update.sh is fine)
- Script will self update now. (note that if you are updating to a version which does not come with the updated script you will be downgrading the config and need to manually upgrade again)
- Cleaned up code. Deleted a bunch of lines simplifying duplicate sections
- fixed inability to handle filenames with spaces
- fixed inability to handle script name with spaces
- Automatically remove old updatescript backups (keep latest 5 only)
2019-02-10 15:57:45 -04:00
SgtBatten 844452a623 fix error
fix error message if less than 5 backups exist
2019-02-10 15:57:45 -04:00
SgtBatten e5038c0d0f New version
- Fixed issue where removing and recreating pm2 processes resulted in pm2 ID changing after some time. Script now uses the process name even if the user configures it using process ID. - elroys specialty. (does require you to go through configuration again to avoid this issue)
- Fixed issue where running the script from within the bot folder resulted in profittrailer.jar being deleted. 
- script can be run without having to cd to the correct directory (i.e ./var/opt/linux-update.sh is fine)
- Script will self update now. (note that until this version is live youll be overwriting with an old script.
2019-02-10 15:57:45 -04:00
gingerman 861f904be3 Update to backup v2.2 DB 2019-01-16 21:04:15 -04:00
taniman 0688bdf7e8
Dash needs to be at first or last place in the regex else it does not work correctly 2018-11-08 21:44:19 -04:00
taniman 9d458782fc Insert a check for curl (#2013)
* Insert a check for curl

* typo

* confirmation messages
2018-08-09 08:27:20 +10:00
SgtBatten 5369c8fc0e moved json backup from location 2018-08-01 16:33:28 +02:00
SgtBatten 3020908997 removed random test code 2018-08-01 16:33:28 +02:00
SgtBatten b9b14bf45f Update Script
get path information from pm2 instaead of having to enter manually
Make it work with pm2 names with spaces in them.
2018-08-01 16:33:28 +02:00
SgtBatten d5e977fc4d update.sh as file
instead of raw text, uploading as a file
2018-07-22 15:39:10 +02:00