瀏覽代碼

Include utils in logging command

So that functions can be called by logging app routines
Bob Mottram 7 年之前
父節點
當前提交
fb811406e9
共有 1 個檔案被更改,包括 8 行新增0 行删除
  1. 8
    0
      src/freedombone-logging

+ 8
- 0
src/freedombone-logging 查看文件

@@ -40,6 +40,14 @@ WEBSERVER_LOG_LEVEL='warn'
40 40
 # Also the shred command can be very slow on Beaglebone Black
41 41
 REMOVE_FILES_COMMAND='rm -rf'
42 42
 
43
+source /usr/local/bin/${PROJECT_NAME}-vars
44
+
45
+UTILS_FILES=/usr/share/${PROJECT_NAME}/utils/${PROJECT_NAME}-utils-*
46
+for f in $UTILS_FILES
47
+do
48
+    source $f
49
+done
50
+
43 51
 APP_FILES=/usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-app-*
44 52
 for f in $APP_FILES
45 53
 do