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,9 +1,9 @@
#!/bin/bash
##Install NadekoBot
#Backup Existing NadekoBot
rsync /root/NadekoBot /root/NadekoBot.bak
#Cleanup Old
rm -rf /root/NadekoBot
#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 &&\
unzip /root/NadekoBot.latest.zip -d /root/NadekoBot
unzip /root/NadekoBot.latest.zip -d /root/NadekoBot