diff --git a/valheim/Containerfile b/valheim/Containerfile index 2f5623d..b1780b6 100644 --- a/valheim/Containerfile +++ b/valheim/Containerfile @@ -24,15 +24,15 @@ RUN apt update -y && apt install -y software-properties-common libsdl2-2.0-0 zip # install steamcmd RUN apt-add-repository contrib && \ apt-add-repository non-free && \ + dpkg --add-architecture i386 && \ apt update -y && \ -# echo steam steam/question select "I AGREE" | debconf-set-selections && \ -# echo steam steam/license note '' | debconf-set-selections && \ + echo steam steam/question select "I AGREE" | debconf-set-selections && \ + echo steam steam/license note '' | debconf-set-selections && \ apt install -y steamcmd # create valheim server user with file owner UID RUN addgroup --gid $FILESUID vhadmin && \ - adduser vhadmin --ingroup vhadmin --uid $FILESUID --disabled-password --gecos "Valheim Server Admin" --shell /usr/sbin/nologin && \ - rm /home/mcadmin/.bashrc + adduser vhadmin --ingroup vhadmin --uid $FILESUID --disabled-password --gecos "Valheim Server Admin" --shell /usr/sbin/nologin # Copy custom scripts COPY assets/bin/ /usr/local/bin/ diff --git a/valheim/asssets/bin/maint b/valheim/assets/bin/maint similarity index 100% rename from valheim/asssets/bin/maint rename to valheim/assets/bin/maint diff --git a/valheim/asssets/bin/steamcmd b/valheim/assets/bin/steamcmd old mode 100644 new mode 100755 similarity index 100% rename from valheim/asssets/bin/steamcmd rename to valheim/assets/bin/steamcmd diff --git a/valheim/asssets/bin/vh-backup b/valheim/assets/bin/vh-backup similarity index 100% rename from valheim/asssets/bin/vh-backup rename to valheim/assets/bin/vh-backup diff --git a/valheim/asssets/bin/vh-install b/valheim/assets/bin/vh-install old mode 100644 new mode 100755 similarity index 100% rename from valheim/asssets/bin/vh-install rename to valheim/assets/bin/vh-install diff --git a/valheim/asssets/bin/vh-restore b/valheim/assets/bin/vh-restore similarity index 97% rename from valheim/asssets/bin/vh-restore rename to valheim/assets/bin/vh-restore index 99e7d21..da6ec59 100755 --- a/valheim/asssets/bin/vh-restore +++ b/valheim/assets/bin/vh-restore @@ -23,7 +23,6 @@ if [[ $status == active ]]; then sleep 1 fi -worlds_dir=/home/mcadmin/worlds # if worlds dir is non-empty, save it as worlds.bak if [[ ! -z $(ls $worlds_dir) ]]; then echo "Worlds directory is nonempty: saving backup as $worlds_dir.bak" diff --git a/valheim/asssets/bin/vh-start b/valheim/assets/bin/vh-start old mode 100644 new mode 100755 similarity index 100% rename from valheim/asssets/bin/vh-start rename to valheim/assets/bin/vh-start diff --git a/valheim/asssets/systemd/valheim.service b/valheim/assets/systemd/valheim.service similarity index 100% rename from valheim/asssets/systemd/valheim.service rename to valheim/assets/systemd/valheim.service diff --git a/valheim/asssets/systemd/vh-backup.service b/valheim/assets/systemd/vh-backup.service similarity index 100% rename from valheim/asssets/systemd/vh-backup.service rename to valheim/assets/systemd/vh-backup.service diff --git a/valheim/asssets/systemd/vh-backup.timer b/valheim/assets/systemd/vh-backup.timer similarity index 100% rename from valheim/asssets/systemd/vh-backup.timer rename to valheim/assets/systemd/vh-backup.timer