diff --git a/helm/templates/deploy.yaml b/helm/templates/deploy.yaml index 4139ac5..075e755 100644 --- a/helm/templates/deploy.yaml +++ b/helm/templates/deploy.yaml @@ -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