Browse Source

added permissions txt's to valheim config

feature/startup-from-labels
Mar Alegre 4 years ago
parent
commit
8e239fe579
  1. 6
      valheim/Containerfile
  2. 4
      valheim/assets/bin/vh-start

6
valheim/Containerfile

@ -45,6 +45,12 @@ WORKDIR /home/vhadmin
# install Valheim
RUN vh-install
# replace permissions txt's with links
RUN cd .config/unity3d/IronGate/Valheim/; \
for f in adminlist.txt bannedlist.txt permittedlist.txt; \
do rm $f; ln -s /vol/data/config/$f; \
done
# copy units to systemd
COPY assets/systemd/ /etc/systemd/system/

4
valheim/assets/bin/vh-start

@ -6,10 +6,10 @@ export SteamAppId=892970
echo "Starting server"
# Load Config
. /vol/data/config
. /vol/data/config/server
# NOTE: Minimum password length is 5 characters & Password cant be in the server name.
# NOTE: You need to make sure the ports 2456-2458 is being forwarded to your server through your local router & firewall.
./valheim_server.x86_64 -name "$vh_name" -port 2456 -world "$vh_world" -password "$vh_pass"
./valheim_server.x86_64 -name "${vh_name:?}" -port 2456 -world "${vh_world:?}" -password "${vh_pass:?}" -public ${vh_public:?}
export LD_LIBRARY_PATH=$templdpath

Loading…
Cancel
Save