Last active
October 16, 2017 08:20
-
-
Save jialechan/c7fe0ac9da371e8fe285ee759e582d53 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
source /etc/profile | |
cd /userdata1/server_script/ | |
rm -r LogAnalytics.jar | |
wget `curl -s https://api.github.com/repos/jialechan/LogAnalytics/releases/latest | jq -r ".assets[].browser_download_url"` -O LogAnalytics.jar | |
/userdata1/software/jdk1.8/bin/java -jar LogAnalytics.jar --dateStr=`date -d yesterday +%Y-%m-%d` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment