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