From b7a074ddd87c4ebb61449bac87a0ab104392cdb3 Mon Sep 17 00:00:00 2001 From: Tekaoh <45337851+Tekaoh@users.noreply.github.com> Date: Mon, 26 Nov 2018 21:22:58 -0600 Subject: [PATCH] Add migrate instructions --- _docs/migrate-from-1.2.md | 35 +++++++++++++++++++++++++++++++++-- assets/css/style.scss | 4 ++++ 2 files changed, 37 insertions(+), 2 deletions(-) diff --git a/_docs/migrate-from-1.2.md b/_docs/migrate-from-1.2.md index d55d8bf..aad95ed 100644 --- a/_docs/migrate-from-1.2.md +++ b/_docs/migrate-from-1.2.md @@ -2,5 +2,36 @@ title: Migrate from v1.2 --- # Are you already running SWG Source v1.2? -Great! You can get caught up to 1.2.1 without even loosing your database. Here's how: -(coming soon...) +Great! You can get caught up to v1.2.1 without even loosing your database. Here's how: + +__*Protip:*__: Take a snapshot of your VM before starting just in case you need to revert. + +## Recommended Method + +The best way to get all synced up is to rebuild your server. First, navigate to your home folder and rename swg-main to swg-main-old. (You can delete this directory later, but it's good practice to keep it until you're all set up just in case you need to revert.) Then, open a terminal and run the following commands one at a time: +``` +cd ~ +git clone https://github.com/SWG-Source/swg-main.git +cd swg-main +touch .setup +./build_linux.sh +``` +The build_linux script will ask you to pull rest of the repos and rebuild everything. Answer yes to everything and let it do it's work. (When it asks for release or debug, choose release.) + +After running the build script, you may choose to adjust any configuration files as needed in order to turn zones off or on, or set whatever else you like. + +Finally, boot your server! + +## Update Your Client + +If you are using the v1.2 Client, you can configure it to get updates from the client-assets repository. + +If you haven't already, you will need to install Git for Windows. https://git-scm.com/download/win + +Open a GIT Bash in your client folder. Run the following commands one at a time: +``` +git init . +git remote add -f origin https://github.com/SWG-Source/client-assets.git +git checkout master +``` +You may now get updates to your client by opening a GIT Bash and running: `git pull` diff --git a/assets/css/style.scss b/assets/css/style.scss index 36f34e2..563e97c 100644 --- a/assets/css/style.scss +++ b/assets/css/style.scss @@ -13,6 +13,10 @@ code { color: #ffcc00; background: #303030; } +pre code{ + color: #ffcc00; + background: none; +} ul.nav { list-style-type: none; padding: 0;