diff --git a/data-restorer.yaml b/data-restorer.yaml index d48a5d1..89be724 100644 --- a/data-restorer.yaml +++ b/data-restorer.yaml @@ -14,4 +14,4 @@ spec: volumes: - name: target-volume persistentVolumeClaim: - claimName: calibre-web-config-pvc + claimName: forgejo-data diff --git a/services/forgejo/forgejo-deployment.yaml b/services/forgejo/forgejo-deployment.yaml index e72094e..8a22db9 100644 --- a/services/forgejo/forgejo-deployment.yaml +++ b/services/forgejo/forgejo-deployment.yaml @@ -18,6 +18,21 @@ spec: labels: app: forgejo spec: + securityContext: + fsGroup: 1000 + initContainers: + - name: fix-ssh-permissions + image: busybox:latest + command: + - sh + - -c + - | + mkdir -p /data/ssh + chown -R 1000:1000 /data/ssh + chmod 700 /data/ssh + volumeMounts: + - name: forgejo-data + mountPath: /data containers: - name: forgejo image: codeberg.org/forgejo/forgejo:10