From 96105977bf41f5765476e48158a3ab6c3ae7bcbc Mon Sep 17 00:00:00 2001 From: MBRound18 <12646562+mbround18@users.noreply.github.com> Date: Sun, 28 Jan 2024 15:10:25 -0800 Subject: [PATCH] Added group update --- Dockerfile.odin | 2 +- Dockerfile.valheim | 1 + README.md | 2 ++ src/scripts/entrypoint.sh | 6 ++++-- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Dockerfile.odin b/Dockerfile.odin index 9e854fe7..4fbb64f0 100644 --- a/Dockerfile.odin +++ b/Dockerfile.odin @@ -23,7 +23,7 @@ RUN cargo chef cook --release --recipe-path recipe.json FROM rust:${RUST_VERSION} as cargo-make -ARG CARGO_MAKE_VERSION=0.37.7 +ARG CARGO_MAKE_VERSION=0.37.8 ADD https://github.com/sagiegurari/cargo-make/releases/download/${CARGO_MAKE_VERSION}/cargo-make-v${CARGO_MAKE_VERSION}-x86_64-unknown-linux-gnu.zip /tmp/cargo-make.zip RUN unzip /tmp/cargo-make.zip -d /tmp \ diff --git a/Dockerfile.valheim b/Dockerfile.valheim index 95f3513c..df81b04b 100644 --- a/Dockerfile.valheim +++ b/Dockerfile.valheim @@ -89,6 +89,7 @@ RUN usermod -u ${PUID} steam \ && chmod 755 /env.sh \ && chmod 755 /usr/local/bin/odin \ && dos2unix /entrypoint.sh /home/steam/.bashrc /home/steam/scripts/*.sh \ + && echo "root ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers \ && echo "steam ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers diff --git a/README.md b/README.md index 2d9bdb86..d0364f10 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,9 @@ + [![All Contributors](https://img.shields.io/badge/all_contributors-14-orange.svg?style=flat-square)](#contributors-) + ## Table of Contents diff --git a/src/scripts/entrypoint.sh b/src/scripts/entrypoint.sh index 4928a042..d96def69 100644 --- a/src/scripts/entrypoint.sh +++ b/src/scripts/entrypoint.sh @@ -4,7 +4,6 @@ if [ -f "/home/steam/scripts/utils.sh" ]; then source "/home/steam/scripts/utils.sh" fi - # Set up variables # shellcheck disable=SC2155 export NAME="$(sed -e 's/^"//' -e 's/"$//' <<<"$NAME")" @@ -123,9 +122,12 @@ setup_cron() { setup_filesystem() { log "Setting up file systems" - STEAM_UID=${PUID:=1000} + STEAM_UID=1000 STEAM_GID=${PGID:=1000} + mkdir -p "/home/steam/.steam/root" + mkdir -p "/home/steam/.steam/steam" + # Save Files mkdir -p "${SAVE_LOCATION}"