mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-11 10:38:27 +00:00
Inject git commit into arkmanager script
This commit is contained in:
parent
3e0fa90c70
commit
10a49b7baf
@ -8,10 +8,14 @@ channel=${2:-master} # if defined by 2nd argument install the defined version, o
|
||||
|
||||
# Download and untar installation files
|
||||
cd /tmp
|
||||
curl -L -k -s https://github.com/FezVrasta/ark-server-tools/archive/${channel}.tar.gz | tar xz
|
||||
COMMIT="`curl -L -k -s https://api.github.com/repos/FezVrasta/ark-server-tools/git/refs/heads/${channel} | sed -n 's/^ *"sha": "\(.*\)",.*/\1/p'`"
|
||||
mkdir ark-server-tools-${channel}
|
||||
cd ark-server-tools-${channel}
|
||||
curl -L -k -s https://github.com/FezVrasta/ark-server-tools/archive/${COMMIT}.tar.gz | tar xz
|
||||
|
||||
# Install ARK Server Tools
|
||||
cd ark-server-tools-${channel}/tools
|
||||
cd ark-server-tools-${COMMIT}/tools
|
||||
sed -i "s|^arkstCommit='.*'$|arkstCommit='${COMMIT}'|" arkmanager
|
||||
chmod +x install.sh
|
||||
sh install.sh $1 > /dev/null
|
||||
|
||||
|
||||
@ -44,6 +44,7 @@ arkserverLog="arkserver.log" # here is logged the output of ShooterGameServer
|
||||
|
||||
# Script version
|
||||
arkstVersion="1.3"
|
||||
arkstCommit=''
|
||||
|
||||
#---------------------
|
||||
# functions
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user