Skip to content

Add support for Pelican's opinionated Docker CE setup #190

@cowrevenge

Description

@cowrevenge

Pelican-specific fixes (enable with PELICANFIX=1|true|True)

if [[ "${PELICANFIX}" =~ ^(1|true|True)$ ]]; then
export HOME="/home/container"
export STEAMAPPDIR="${HOME}/Steam"
INSTALL_DIR="${STEAMAPPDIR}/cs2-dedicated"

echo "Pelicanfix enabled"
echo "[PELICANFIX] HOME=${HOME}"
echo "[PELICANFIX] STEAMAPPDIR=${STEAMAPPDIR}"
echo "[PELICANFIX] INSTALL_DIR=${INSTALL_DIR}"
echo "[PELICANFIX] uid=$(id -u) gid=$(id -g)"

Minimal scaffolding only

mkdir -p "${INSTALL_DIR}" "${STEAMAPPDIR}/logs"
"${HOME}/steamapps" "${HOME}/.steam/sdk32" "${HOME}/.steam/sdk64"
ln -sfn "../steamapps" "${STEAMAPPDIR}/steamapps" || true

Sanity checks

[ -d "${INSTALL_DIR}" ] || { echo "[PELICANFIX] ERROR: ${INSTALL_DIR} missing"; exit 1; }
[ -w "${INSTALL_DIR}" ] || { echo "[PELICANFIX] ERROR: ${INSTALL_DIR} not writable"; ls -ld "${INSTALL_DIR}"; exit 1; }

Run from install dir

cd "${INSTALL_DIR}"

Redirect stderr to Steam logs

exec 2> "${STEAMAPPDIR}/logs/stderr.txt"
echo "[PELICANFIX] stderr -> ${STEAMAPPDIR}/logs/stderr.txt"
fi

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions