Update nadeko_autorestart.sh
This commit is contained in:
parent
fb9c9cfee3
commit
6b0000f980
@ -12,13 +12,15 @@ echo ""
|
||||
echo "Linking Nadeko DB"
|
||||
|
||||
mkdir /root/nadeko
|
||||
mv -n /opt/NadekoBot/src/NadekoBot/bin/Release/netcoreapp1.1/data/NadekoBot.db /root/nadeko/NadekoBot.db
|
||||
rm /opt/NadekoBot/src/NadekoBot/bin/Release/netcoreapp1.1/data/NadekoBot.db
|
||||
ln -s /root/nadeko/NadekoBot.db /opt/NadekoBot/src/NadekoBot/bin/Release/netcoreapp1.1/data/NadekoBot.db
|
||||
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
|
||||
|
||||
mv -n /opt/NadekoBot/src/NadekoBot/credentials.json /root/nadeko/credentials.json
|
||||
rm /opt/NadekoBot/src/NadekoBot/credentials.json
|
||||
ln -s /root/nadeko/credentials.json /opt/NadekoBot/src/NadekoBot/credentials.json
|
||||
echo ""
|
||||
echo "Linking Nadeko Credentials"
|
||||
mv -n /opt/NadekoBot/src/NadekoBot/credentials.json /root/nadeko/credentials.json > /dev/null 2>&1
|
||||
rm /opt/NadekoBot/src/NadekoBot/credentials.json > /dev/null 2>&1
|
||||
ln -s /root/nadeko/credentials.json /opt/NadekoBot/src/NadekoBot/credentials.json > /dev/null 2>&1
|
||||
|
||||
cd NadekoBot/src/NadekoBot
|
||||
echo "Running NadekoBot with auto restart Please wait."
|
||||
|
Loading…
Reference in New Issue
Block a user