File tree Expand file tree Collapse file tree 2 files changed +19
-3
lines changed
Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change 1+ {
2+ "file" : " /data/settings.yml" ,
3+ "ops" : [
4+ {
5+ "$set" : {
6+ "path" : " $.bind.port" ,
7+ "value" : " ${SERVER_PORT}" ,
8+ "value-type" : " int"
9+ }
10+ }
11+ ]
12+ }
Original file line number Diff line number Diff line change @@ -14,11 +14,12 @@ if ! SERVER=$(mc-image-helper github download-latest-asset \
1414fi
1515
1616: " ${SERVER_PORT:= 25565} "
17- cat << EOF > /data/settings.yml
17+
18+ if [ ! -f /data/settings.yml ]; then
19+ cat << EOF > /data/settings.yml
1820#
1921# NanoLimbo configuration
2022#
21-
2223# Server's host address and port. Set ip empty to use public address
2324bind:
2425 ip: '0.0.0.0'
@@ -157,8 +158,11 @@ traffic:
157158 # Ignored if -1.0
158159 maxPacketBytesRate: 2048.0
159160EOF
161+ fi
162+
163+ mc-image-helper patch --patch-env-prefix " " /image/nanolimbo-settings-patch.json
160164
161165export SERVER
162166export FAMILY=LIMBO
163167
164- exec " $( dirname " $0 " ) /start-setupMounts" " $@ "
168+ exec " $( dirname " $0 " ) /start-setupMounts" " $@ "
You can’t perform that action at this time.
0 commit comments