script to revert the current build to the old one
This commit is contained in:
parent
155942854a
commit
62b188cfe8
1 changed files with 19 additions and 0 deletions
19
utils/mp-server/revert_build
Executable file
19
utils/mp-server/revert_build
Executable file
|
@ -0,0 +1,19 @@
|
|||
#!/bin/sh
|
||||
if ! [ $# -eq 1 ]; then
|
||||
echo "Syntax: $0 <server version>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
SERVER=$1
|
||||
SERVERBASE=$HOME/servers/$SERVER
|
||||
|
||||
if ! [ -d $SERVERBASE ]; then
|
||||
echo "$SERVER server not found."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd $SERVERBASE
|
||||
rm -f revertedbuild
|
||||
mv build revertedbuild
|
||||
mv oldbuild build
|
||||
|
Loading…
Add table
Reference in a new issue