File tree Expand file tree Collapse file tree 3 files changed +10
-9
lines changed
Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ They provide a more maintainable and future-proof approach to configuring advanc
1616
1717All configuration files must be placed in:
1818
19- /opt/papermc/ config/overrides
19+ /config/
2020
2121You are free to choose any file names that suit your organization.
2222
@@ -53,7 +53,7 @@ We’ll do our best to find a solution!
5353
5454Suppose you want to disable the End dimension in your PaperMC server.
5555This would normally require setting the ` settings.allow-end ` property inside ` bukkit.yml ` .
56- Now, you can create any file inside ` /opt/papermc/ config/overrides ` and define the property under the ` bukkit.global.settings ` key like this:
56+ Now, you can create any file inside ` /config/ ` and define the property under the ` bukkit.global.settings ` key like this:
5757
5858``` yaml
5959bukkit :
Original file line number Diff line number Diff line change @@ -118,13 +118,14 @@ RUN apk add --no-cache gettext libudev-zero
118118COPY --chmod=770 runtime/ ./
119119
120120# Adjust permissions.
121+ # Set default ones for mount points knowing that they can be overridden at runtime (e.g., Kubernetes's security context "fsGroup").
121122RUN chmod 770 /opt/papermc && \
122- chmod 550 /opt/papermc/start.sh
123-
124- # Prepare data directories by setting proper default permissions.
125- # Avoid "access denied" errors when the server attempts to create or modify files.
126- # See https://stackoverflow.com/a/64034092/10165346
127- RUN mkdir --parent /data/worlds && \
123+ chmod 550 /opt/papermc/start.sh && \
124+ # Overrides config files
125+ mkdir /config && \
126+ chown daemon /config && \
127+ # Data directories
128+ mkdir --parent /data/worlds && \
128129 chown daemon /data/worlds
129130
130131# mc-monitor setup for health-checks.
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ SCRIPT_DIR=$(cd "$(dirname "$0")" > /dev/null 2>&1 && pwd -P)
77# # Directories
88ROOT_DIR=" ${SCRIPT_DIR} "
99CONFIG_DIR=" ${SCRIPT_DIR} /config"
10- OVERRIDES_CONFIG_DIR=" ${CONFIG_DIR} /overrides "
10+ OVERRIDES_CONFIG_DIR=" /config "
1111CUE_DIR=" ${CONFIG_DIR} /cue"
1212
1313IS_SERVER_RESTART=false
You can’t perform that action at this time.
0 commit comments