Update 40_nadekoinstall.sh

Cleanup old installs
This commit is contained in:
Poag 2016-05-06 17:23:35 +01:00
parent 6f9f6add98
commit edb9bd23fe

View File

@ -1,8 +1,8 @@
#!/bin/bash #!/bin/bash
##Install NadekoBot ##Install NadekoBot
#Backup Existing NadekoBot #Cleanup Old
rsync /root/NadekoBot /root/NadekoBot.bak rm -rf /root/NadekoBot
#Get NadekoBot Latest #Get NadekoBot Latest
curl -s https://api.github.com/repos/Kwoth/NadekoBot/releases | grep browser_download_url | head -n 1 | cut -d '"' -f 4|wget -i - -O /root/NadekoBot.latest.zip &&\ curl -s https://api.github.com/repos/Kwoth/NadekoBot/releases | grep browser_download_url | head -n 1 | cut -d '"' -f 4|wget -i - -O /root/NadekoBot.latest.zip &&\