Pārlūkot izejas kodu

autogenerate color.json file in backend setup script

Guénaël Muller 6 gadus atpakaļ
vecāks
revīzija
12f5132753
1 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  1. 5 0
      backend_lib.sh

+ 5 - 0
backend_lib.sh Parādīt failu

@@ -37,6 +37,11 @@ function setup_config_file {
37 37
        log "generate missing wsgidav.conf ..."
38 38
        cp wsgidav.conf.sample wsgidav.conf
39 39
     fi
40
+
41
+    if [ ! -f ../color.json ]; then
42
+       log "generate missing color.json ..."
43
+       cp ../color.json.sample ../color.json
44
+    fi
40 45
 }
41 46
 
42 47
 function setup_db {