]> git.lizzy.rs Git - elidragon_v2.git/blob - scripts/update.sh
Update scripts to make mapserver function properly the first time
[elidragon_v2.git] / scripts / update.sh
1 #! /bin/bash
2 # Elidragon v2 update script
3 # Update all software used by the server
4
5 # Pull repository
6 git pull
7
8 # Update submodules
9 git submodule init
10 git submodule update
11 git submodule foreach "git fetch origin; git checkout $(git rev-parse --abbrev-ref HEAD); git reset --hard origin/$(git rev-parse --abbrev-ref HEAD); git submodule update --recursive; git clean -dfx"
12
13 # Update minetest and screen
14 sudo apt-get update -y
15 sudo apt-get install minetest screen -y
16
17 # Update multiserver
18 go get -u github.com/HimbeerserverDE/multiserver