remove old forge versions before unzipping
This commit is contained in:
@@ -18,7 +18,7 @@ spec:
|
|||||||
image: {{ .Values.image }}
|
image: {{ .Values.image }}
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
command: ["/bin/bash"]
|
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:
|
volumeMounts:
|
||||||
- mountPath: /mc_data
|
- mountPath: /mc_data
|
||||||
name: data
|
name: data
|
||||||
@@ -26,7 +26,7 @@ spec:
|
|||||||
image: {{ .Values.image }}
|
image: {{ .Values.image }}
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
command: ["/bin/bash"]
|
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:
|
volumeMounts:
|
||||||
- mountPath: /mc_data
|
- mountPath: /mc_data
|
||||||
name: data
|
name: data
|
||||||
|
|||||||
Reference in New Issue
Block a user