nadeko/init/40_nadekoinstall.sh

14 lines
437 B
Bash
Raw Normal View History

2016-05-05 14:42:47 +00:00
#!/bin/bash
##Install NadekoBot
#Cleanup Old
rm -rf /root/NadekoBot
2016-05-05 14:42:47 +00:00
#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
#Sync any new data files
rsync --ignore-existing -r /root/NadekoBot/data /config
#Remove data folder
rm -rf /root/NadekoBot/data