Browse Source

check dir

root 2 years ago
parent
commit
54b6aa63c4
1 changed files with 1 additions and 0 deletions
  1. 1 0
      deploy.yaml

+ 1 - 0
deploy.yaml

@@ -30,6 +30,7 @@ spec:
         - name: init
         - name: init
           image: hub.evbj.easou.com/dev/busybox
           image: hub.evbj.easou.com/dev/busybox
           command: ["chmod","777","-R","/data"]
           command: ["chmod","777","-R","/data"]
+          command: ['sh', "-c", 'chmod 777 -R /data && mkdir -p /data/project &&  mkdir -p /data/log']
           imagePullPolicy: Always
           imagePullPolicy: Always
           volumeMounts:
           volumeMounts:
           - name: volume
           - name: volume