Create nadeko_autorestart.sh

This commit is contained in:
Poag 2017-06-09 09:38:12 +01:00 committed by GitHub
parent 365c0890c6
commit 7d0a656a11

View File

@ -8,13 +8,6 @@ else
exit 1
fi
echo ""
echo "Linking Nadeko DB"
mkdir -p /root/nadeko
mv -n /opt/NadekoBot/src/NadekoBot/bin/Release/netcoreapp1.1/data/NadekoBot.db /root/nadeko/NadekoBot.db > /dev/null 2>&1
rm /opt/NadekoBot/src/NadekoBot/bin/Release/netcoreapp1.1/data/NadekoBot.db > /dev/null 2>&1
ln -s /root/nadeko/NadekoBot.db /opt/NadekoBot/src/NadekoBot/bin/Release/netcoreapp1.1/data/NadekoBot.db > /dev/null 2>&1
echo ""
echo "Linking Nadeko Credentials"
mv -n /opt/NadekoBot/src/NadekoBot/credentials.json /root/nadeko/credentials.json > /dev/null 2>&1