diff --git a/valheim/Containerfile b/valheim/Containerfile index 69e90b6..b532f5d 100644 --- a/valheim/Containerfile +++ b/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/ diff --git a/valheim/assets/bin/vh-start b/valheim/assets/bin/vh-start index f0eca06..96b9e11 100755 --- a/valheim/assets/bin/vh-start +++ b/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