Comments (4)
Hello @marlub - That is because the SED uses the delimiter / for Regex. See here: https://github.com/jammsen/docker-palworld-dedicated-server/blob/develop/includes/config.sh#L252
If if would go for # or another character the issue of someone else would be "Cant use # in Servername". One character it has to be and i went with "/". You could try to use escaping in your Servername variable meaning using instead of / the use of /
Hope that helps.
from docker-palworld-dedicated-server.
Hey @jammsen, thanks for your clarification. GitHub does not correctly print the backslash for me, which I think you wrote. Escaping myself works fine.
Little bit odd, as this worked yesterday with the latest image from before 13.02 04:34 CET.
Maybe I am wrong but a character like ; or ° sounds less conflict likely for me than /. On the other hand, slash is the common delimiter.
from docker-palworld-dedicated-server.
Another approach is to escape the delimiter systematically. You could do something like this for example:
SERVER_NAME=$(echo ${SERVER_NAME} | sed -e "s#/#\\\/#g")
sed -E -i "s/ServerName=\"[^\"]*\"/ServerName=\"$SERVER_NAME\"/" "$GAME_SETTINGS_FILE"
from docker-palworld-dedicated-server.
I like having /
as the delimiter, but thanks input, glad that escaping works.
If you like this project, please consider giving this repo and the Docker-Hub-Repo a Star.
from docker-palworld-dedicated-server.
Related Issues (20)
- [Bug Report] rcon connection fails HOT 6
- [Feature Request] Setting to not show in-game backup broadcast message HOT 7
- [Feature Request] Add delay to cron backup HOT 3
- [Bug Report] After one suddenly crash, the server keeps crashing HOT 4
- [Bug Report] Updated container doesn't start! HOT 1
- [Bug Report] Updated container now doesnt start HOT 2
- [Bug Report] Fix 2 CVEs in RCONCLI
- [Bug Report] Fix 1 CVEs in GOSU
- [Feature Request] Analyse Playerlist and announce joins and leaves HOT 1
- How to use your Steam account when downloading game files HOT 5
- [Suggestion] Allow rcon.yaml to be modified even when SERVER_SETTINGS_MODE is manual HOT 7
- [Feature-Request] Variable for "content" in webhooks HOT 12
- [Bug Report] Player Join/Leave if steam name has spaces breaks message HOT 3
- [Bug Report] Player join/left issue with character creation HOT 1
- [Bug Report] Player join/leave cannot have commas in name HOT 1
- [Bug Report] Player join/leave doesn't work with players of the same name HOT 1
- [Bug Report] Crash Loop (LowLevelFatalError) HOT 4
- [Feature Request] Automatic Restart should not wait 15 minutes when no player is on the server
- [Bug Report] RCON Port setting change in 1.50 HOT 6
- [Bug Report] Error when auto restart HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-palworld-dedicated-server.