Update files

main
Astra 2023-12-27 19:34:30 +00:00
parent e5a69f276a
commit e328b3f6a6
3 changed files with 3 additions and 0 deletions

1
.gitignore vendored 100644
View File

@ -0,0 +1 @@
.cs2.env

View File

@ -32,6 +32,7 @@ RUN set -x \
# Add entry script
&& chmod +x "${HOMEDIR}/entry.sh" \
&& chown -R "${USER}:${USER}" "${HOMEDIR}/entry.sh" "${STEAMAPPDIR}" \
&& chmod -R +x /etc/post /etc/pre \
# Clean up
&& apt-get clean \
&& find /var/lib/apt/lists/ -type f -delete

View File

@ -28,6 +28,7 @@ sed -i -e "s/hostname.*/hostname ${CS2_SERVERNAME}/g" "${STEAMAPPDIR}"/game/csgo
if [[ ! -f "${STEAMAPPDIR}/pre.sh" ]] ; then
cp /etc/pre.sh "${STEAMAPPDIR}/pre.sh"
fi
if [[ ! -f "${STEAMAPPDIR}/post.sh" ]] ; then
cp /etc/post.sh "${STEAMAPPDIR}/post.sh"
fi