diff --git a/workout-system/workout.yaml b/workout-system/workout.yaml index f921afb..a147ffe 100644 --- a/workout-system/workout.yaml +++ b/workout-system/workout.yaml @@ -79,6 +79,15 @@ spec: app.kubernetes.io/instance: wger app.kubernetes.io/name: wger spec: + initContainers: + - name: fix-permissions + image: alpine:latest + command: ["sh", "-c", "rm -rf /home/wger/static/lost+found"] + securityContext: + runAsUser: 0 + volumeMounts: + - name: static + mountPath: /home/wger/static containers: - name: wger image: wger/server:latest