remove old forge versions before unzipping

This commit is contained in:
ducoterra
2021-12-13 14:51:49 -05:00
parent 6c4354d193
commit fe577bfc4c

View File

@@ -18,7 +18,7 @@ spec:
image: {{ .Values.image }}
imagePullPolicy: Always
command: ["/bin/bash"]
args: ["-c", "unzip -o -d . /the-1122-pack/the-1122-pack.zip"]
args: ["-c", "rm -f forge*.jar && unzip -o -d . /the-1122-pack/the-1122-pack.zip"]
volumeMounts:
- mountPath: /mc_data
name: data
@@ -26,7 +26,7 @@ spec:
image: {{ .Values.image }}
imagePullPolicy: Always
command: ["/bin/bash"]
args: ["-c", "mv $(find . -d 1 -name forge\*.jar) forge.jar"]
args: ["-c", "mv $(find . -maxdepth 1 -name 'forge*.jar') forge.jar"]
volumeMounts:
- mountPath: /mc_data
name: data