Commit Graph

23 Commits

Author SHA1 Message Date
taniman 25ad37ed59 do not start stopped bots and delay 30 seconds 2020-02-20 18:29:16 -04:00
SgtBatten 9b2062226a Cleanup update.sh after update 2019-05-06 16:38:38 -04:00
SgtBatten a4a583785c betaurl optional argument added 2019-05-06 16:38:38 -04:00
SgtBatten c748b4ce81 add ability to send beta url as argument again 2019-05-06 16:38:38 -04:00
SgtBatten bb4a7d77cd add noupdate option
noupdate allows you to run the script without updating from github.

allows someone to customise their script without it being overwritten
2019-05-06 16:38:38 -04:00
SgtBatten e1982efc8a Install dependencies First 2019-05-06 16:38:38 -04:00
SgtBatten 1bbf740af6 Add non interactive option
execute script using ./scriptname.sh auto to avoid having to confirm anything. It will use your existing setup and update to the latest release on github.

Script now updates itself at the start and executes the updated script 
any command line arguments passed to it are passed to the updated script also.
2019-05-06 16:38:38 -04:00
SgtBatten 34c9019784 Correctly display latest version 2019-04-22 18:23:53 -04:00
SgtBatten f59a418c20 Correctly display Latest Version
Latest version displayed properly when user is updating to other than latest version
2019-04-22 18:23:53 -04:00
taniman a3b62cd357 Fix for rev stdin error
rev: stdin: Invalid or incomplete multibyte or wide character
2019-04-11 19:44:32 -04:00
gingerman 2e78babcfd Updated last changed date 2019-04-03 18:38:44 -04:00
gingerman bfb55cd692 Updating DB file name for backups 2019-04-03 18:38:44 -04:00
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