Browse Source

fixes to valheim

feature/startup-from-labels
Mar Alegre 4 years ago
parent
commit
d8e06a2b0b
  1. 8
      valheim/Containerfile
  2. 0
      valheim/assets/bin/maint
  3. 0
      valheim/assets/bin/steamcmd
  4. 0
      valheim/assets/bin/vh-backup
  5. 0
      valheim/assets/bin/vh-install
  6. 1
      valheim/assets/bin/vh-restore
  7. 0
      valheim/assets/bin/vh-start
  8. 0
      valheim/assets/systemd/valheim.service
  9. 0
      valheim/assets/systemd/vh-backup.service
  10. 0
      valheim/assets/systemd/vh-backup.timer

8
valheim/Containerfile

@ -24,15 +24,15 @@ RUN apt update -y && apt install -y software-properties-common libsdl2-2.0-0 zip
# install steamcmd # install steamcmd
RUN apt-add-repository contrib && \ RUN apt-add-repository contrib && \
apt-add-repository non-free && \ apt-add-repository non-free && \
dpkg --add-architecture i386 && \
apt update -y && \ apt update -y && \
# echo steam steam/question select "I AGREE" | debconf-set-selections && \ echo steam steam/question select "I AGREE" | debconf-set-selections && \
# echo steam steam/license note '' | debconf-set-selections && \ echo steam steam/license note '' | debconf-set-selections && \
apt install -y steamcmd apt install -y steamcmd
# create valheim server user with file owner UID # create valheim server user with file owner UID
RUN addgroup --gid $FILESUID vhadmin && \ RUN addgroup --gid $FILESUID vhadmin && \
adduser vhadmin --ingroup vhadmin --uid $FILESUID --disabled-password --gecos "Valheim Server Admin" --shell /usr/sbin/nologin && \ adduser vhadmin --ingroup vhadmin --uid $FILESUID --disabled-password --gecos "Valheim Server Admin" --shell /usr/sbin/nologin
rm /home/mcadmin/.bashrc
# Copy custom scripts # Copy custom scripts
COPY assets/bin/ /usr/local/bin/ COPY assets/bin/ /usr/local/bin/

0
valheim/asssets/bin/maint → valheim/assets/bin/maint

0
valheim/asssets/bin/steamcmd → valheim/assets/bin/steamcmd

0
valheim/asssets/bin/vh-backup → valheim/assets/bin/vh-backup

0
valheim/asssets/bin/vh-install → valheim/assets/bin/vh-install

1
valheim/asssets/bin/vh-restore → valheim/assets/bin/vh-restore

@ -23,7 +23,6 @@ if [[ $status == active ]]; then
sleep 1 sleep 1
fi fi
worlds_dir=/home/mcadmin/worlds
# if worlds dir is non-empty, save it as worlds.bak # if worlds dir is non-empty, save it as worlds.bak
if [[ ! -z $(ls $worlds_dir) ]]; then if [[ ! -z $(ls $worlds_dir) ]]; then
echo "Worlds directory is nonempty: saving backup as $worlds_dir.bak" echo "Worlds directory is nonempty: saving backup as $worlds_dir.bak"

0
valheim/asssets/bin/vh-start → valheim/assets/bin/vh-start

0
valheim/asssets/systemd/valheim.service → valheim/assets/systemd/valheim.service

0
valheim/asssets/systemd/vh-backup.service → valheim/assets/systemd/vh-backup.service

0
valheim/asssets/systemd/vh-backup.timer → valheim/assets/systemd/vh-backup.timer

Loading…
Cancel
Save