summaryrefslogtreecommitdiffstats
path: root/conf/unit/macros.inc
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2019-12-13 16:47:45 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2019-12-13 17:24:21 +0100
commitb65d4e0061d77718ee6c04c6cd1d41f6940b5a03 (patch)
tree0e90fc2aac0f774fb3dee42e0daeecfee1e0b4a7 /conf/unit/macros.inc
parent653562e1449c935f087d2d8265081eeac1cd73b4 (diff)
Ensure home and workir to widget of scope-platformicefish_8.99.3icefish/8.99.38.99.3
The widget requesting the permission to run at platform scope: urn:AGL:permission::partner:scope-platform should be able to record data and state. This change provides a default place to achieve it. Bug-AGL: SPEC-2998 Change-Id: I148a670d3e08e36603ebd318b533ea1e1a695750 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'conf/unit/macros.inc')
-rw-r--r--conf/unit/macros.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/conf/unit/macros.inc b/conf/unit/macros.inc
index 2fc9bc5..1344df7 100644
--- a/conf/unit/macros.inc
+++ b/conf/unit/macros.inc
@@ -60,8 +60,8 @@ define( `USER_RUN_DIR', `@afm_users_rundir@/%i')
define( `DEBUGGING_DIR', `@afm_platform_rundir@/debug')
define( `PLATFORM_RUN_DIR', `@afm_platform_rundir@')
-define( `APP_DATA_DIR', `ON_PERM(`:partner:scope-platform', `/tmp', `/home/%i/app-data')')
-define( `APP_WORK_DIR', `ON_PERM(`:partner:scope-platform', `/tmp', `APP_DATA_DIR/{{:id}}')')
+define( `APP_DATA_DIR', `ON_PERM(`:partner:scope-platform', `@afm_scope_platform_dir@', `/home/%i/app-data')')
+define( `APP_WORK_DIR', `APP_DATA_DIR/{{:id}}')
define( `RUN_DIR', `ON_PERM(`:partner:scope-platform', `PLATFORM_RUN_DIR', `USER_RUN_DIR')')
define( `API_PATH', `RUN_DIR/apis')