Fix instance config template installation

The `arkServerRoot` was not being updated to the desired path in `instance.cfg.example`.  Fix this.
This commit is contained in:
Ben Peddell 2017-02-16 10:07:02 +10:00 committed by GitHub
parent 98a9463daf
commit 0b741f45dc

View File

@ -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"