genericize the container run commands by normalizing file names

This commit is contained in:
ducoterra
2021-12-13 12:40:15 -05:00
parent b7762734d3
commit 6fd156e929
2 changed files with 11 additions and 3 deletions

View File

@@ -18,7 +18,15 @@ spec:
image: {{ .Values.image }}
imagePullPolicy: Always
command: ["/bin/bash"]
args: ["-c", "unzip -n -d . /the-1122-pack/the-1122-pack_1.3.7.zip"]
args: ["-c", "unzip -o -d . /the-1122-pack/the-1122-pack.zip"]
volumeMounts:
- mountPath: /mc_data
name: data
- name: rename
image: {{ .Values.image }}
imagePullPolicy: Always
command: ["/bin/bash"]
args: ["-c", "mv $(find . -d 1 -name forge\*.jar) forge.jar"]
volumeMounts:
- mountPath: /mc_data
name: data
@@ -38,7 +46,7 @@ spec:
image: {{ .Values.image }}
imagePullPolicy: Always
command: ["/bin/bash"]
args: ["-c", 'java -server -Xmx"$MAX_RAM"G -Dfml.queryResult=confirm -jar forge-1.12.2-14.23.5.2855.jar nogui']
args: ["-c", 'java -server -Xmx"$MAX_RAM"G -Dfml.queryResult=confirm -jar forge.jar nogui']
ports:
- containerPort: 25565
volumeMounts: