From 0b741f45dc13fc2009baa8183c36988319d2485c Mon Sep 17 00:00:00 2001 From: Ben Peddell Date: Thu, 16 Feb 2017 10:07:02 +1000 Subject: [PATCH] Fix instance config template installation The `arkServerRoot` was not being updated to the desired path in `instance.cfg.example`. Fix this. --- tools/install.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/install.sh b/tools/install.sh index 9be9ce6..8cb7ac9 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -307,6 +307,10 @@ else # Copy example instance config cp instance.cfg.example "${INSTALL_ROOT}${INSTANCEDIR}/instance.cfg.example" + chown "$steamcmd_user" "${INSTALL_ROOT}${INSTANCEDIR}/instance.cfg.example" + # Change the defaults in the new instance config template + sed -i -e "s|\"/home/steam|\"/home/$steamcmd_user|" \ + "${INSTALL_ROOT}${INSTANCEDIR}/instance.cfg.example" # Copy arkmanager bash_completion into /etc/bash_completion.d/ cp bash_completion/arkmanager "${INSTALL_ROOT}/etc/bash_completion.d/arkmanager"