I setup a Valheim dedicated server on Ubuntu server in a container with docker.I used this tutorial for it: LINK
It has a .sh file that creats the container
#! /bin/shdocker run -d \ --name Docker_Server_Name \ --cap-add=sys_nice \ --stop-timeout 120 \ -p '2456-2457:2456-2457/udp' \ -p '9001:9001' \ -v $HOME/Server_Folder/config:/config \ -v $HOME/Server_Folder/data:/opt/valheim \ -e SERVER_PORT="2456" \ -e SERVER_NAME="Game_Server_Name" \ -e WORLD_NAME="worldfilename" \ -e SERVER_PASS="BestPasswordEver" \ -e SERVER_PUBLIC="false" \ -e RESTART_CRON="0 6 * * *" \ -e TZ="America/Los_Angeles" \ -e BEPINEX="true" \ -e SUPERVISOR_HTTP="true" \ -e SUPERVISOR_PASS="BestAdminPasswordEver" \ -e ADMINLIST_IDS="00000000000000000" \ -e BACKUPS_MAX_AGE="10000" \ -e BACKUPS_MAX_COUNT="50" \ -e BACKUPS_IF_IDLE="false" \ -e BACKUPS_CRON="0 0 * * *" \ -e BACKSUPS_IDLE_GRACE_PERIOD="86400" \ lloesche/valheim-server
I wated to modify this config file, but it seems that it has no affect on the game. I tried restarting the container.Can you help me with it?I am really new to Linux. this is my first project to learn something about it.
I stopped the container and edited the config file, then restarted it.
I also tried to rerun the script itself, but I can't.-bash: ./server_init.sh: /bin/bash^M: bad interpreter: No such file or directory