From e86e3c19b5e94b3bce1a53b5c38df235d2e98ea7 Mon Sep 17 00:00:00 2001 From: "Adrian A. Baumann" Date: Mon, 19 Jan 2026 23:37:44 +0100 Subject: [PATCH] NFS troubleshooting --- argocd/deployment.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/argocd/deployment.yaml b/argocd/deployment.yaml index cadee6d..738554f 100644 --- a/argocd/deployment.yaml +++ b/argocd/deployment.yaml @@ -14,18 +14,18 @@ spec: app: django spec: securityContext: - fsGroup: 999 + fsGroup: 99 fsGroupChangePolicy: "OnRootMismatch" initContainers: - name: loader image: git.baumann.gr/adebaumann/vui-data-loader:0.11 - command: [ "sh","-c","cp -n preload/preload.sqlite3 /data/db.sqlite3; chown -R 999:999 /data; ls -la /data; sleep 10; exit 0" ] + command: [ "sh","-c","if [ ! -f /data/db.sqlite3 ] || [ ! -s /data/db.sqlite3 ]; then cp preload/preload.sqlite3 /data/db.sqlite3 && echo 'Database copied from preload'; else echo 'Existing database preserved'; fi" ] volumeMounts: - name: data mountPath: /data containers: - name: web - image: git.baumann.gr/adebaumann/vui:0.980 + image: git.baumann.gr/adebaumann/vui:0.981 imagePullPolicy: Always env: # Secret configuration