remove old forge versions before unzipping
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user