Update nadeko_installer_1_4.sh
This commit is contained in:
parent
0ba8946eeb
commit
68fd58533d
@ -23,7 +23,7 @@ else
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
root=$(pwd)
|
root=/opt
|
||||||
tempdir=NadekoInstall_Temp
|
tempdir=NadekoInstall_Temp
|
||||||
|
|
||||||
rm -r "$tempdir" 1>/dev/null 2>&1
|
rm -r "$tempdir" 1>/dev/null 2>&1
|
||||||
@ -38,23 +38,14 @@ echo "NadekoBot downloaded."
|
|||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Downloading Nadeko dependencies"
|
echo "Downloading Nadeko dependencies"
|
||||||
cd $root/$tempdir/NadekoBot/Discord.Net/src/Discord.Net.Core/
|
cd $root/$tempdir/NadekoBot
|
||||||
dotnet restore 1>/dev/null 2>&1
|
dotnet restore
|
||||||
cd $root/$tempdir/NadekoBot/Discord.Net/src/Discord.Net.Rest/
|
|
||||||
dotnet restore 1>/dev/null 2>&1
|
|
||||||
cd $root/$tempdir/NadekoBot/Discord.Net/src/Discord.Net.WebSocket/
|
|
||||||
dotnet restore 1>/dev/null 2>&1
|
|
||||||
cd $root/$tempdir/NadekoBot/Discord.Net/src/Discord.Net.Commands/
|
|
||||||
dotnet restore 1>/dev/null 2>&1
|
|
||||||
cd $root/$tempdir/NadekoBot/src/NadekoBot/
|
|
||||||
dotnet restore 1>/dev/null 2>&1
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Download done"
|
echo "Download done"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Building NadekoBot"
|
echo "Building NadekoBot"
|
||||||
cd $root/$tempdir/NadekoBot/src/NadekoBot/
|
dotnet build --configuration Release
|
||||||
dotnet build --configuration Release 1>/dev/null 2>&1
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Building done. Moving Nadeko"
|
echo "Building done. Moving Nadeko"
|
||||||
|
|
||||||
@ -71,6 +62,8 @@ else
|
|||||||
echo ""
|
echo ""
|
||||||
echo "credentials.json copied to the new version"
|
echo "credentials.json copied to the new version"
|
||||||
cp -RT $root/NadekoBot_old/src/NadekoBot/bin/ $root/NadekoBot/src/NadekoBot/bin/ 1>/dev/null 2>&1
|
cp -RT $root/NadekoBot_old/src/NadekoBot/bin/ $root/NadekoBot/src/NadekoBot/bin/ 1>/dev/null 2>&1
|
||||||
|
cp -RT $root/NadekoBot/src/NadekoBot/bin/Release/netcoreapp1.0/data/NadekoBot.db $root/NadekoBot/src/NadekoBot/bin/Release/netcoreapp1.1/data/NadekoBot.db 1>/dev/null 2>&1
|
||||||
|
mv -f $root/NadekoBot/src/NadekoBot/bin/Release/netcoreapp1.0/data/NadekoBot.db $root/NadekoBot/src/NadekoBot/bin/Release/netcoreapp1.0/data/NadekoBot_old.db 1>/dev/null 2>&1
|
||||||
echo ""
|
echo ""
|
||||||
echo "Database copied to the new version"
|
echo "Database copied to the new version"
|
||||||
cp -RT $root/NadekoBot_old/src/NadekoBot/data/ $root/NadekoBot/src/NadekoBot/data/ 1>/dev/null 2>&1
|
cp -RT $root/NadekoBot_old/src/NadekoBot/data/ $root/NadekoBot/src/NadekoBot/data/ 1>/dev/null 2>&1
|
||||||
|
Loading…
Reference in New Issue
Block a user