aboutsummaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-03-02 17:21:47 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2017-03-02 17:21:47 +0100
commit5c93c731743492ea5585ed7383adfaaa864fb84c (patch)
treefcddec09c5f134793f907794cc007a6b671a81f2 /conf
parentd119fb01cf2db46e44828763ace02508db801668 (diff)
Set the workdir in afm/afm-unit.conf
I'm not sure that it will be still present at the end but let go ahead with that. Change-Id: I123035c29c049c780b71b4181c15bd2d3a96e7c7 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'conf')
-rw-r--r--conf/afm-unit.conf4
1 files changed, 2 insertions, 2 deletions
diff --git a/conf/afm-unit.conf b/conf/afm-unit.conf
index 303ee27..0853d11 100644
--- a/conf/afm-unit.conf
+++ b/conf/afm-unit.conf
@@ -100,7 +100,7 @@ SuccessExitStatus=0 SIGKILL
ExecStart=/usr/bin/afb-daemon --port={{:#metadata.http-port}} --random-token \
--rootdir={{:#metadata.install-dir}} \
- --workdir={{&#metadata.app-data-dir}} \
+ --workdir={{&#metadata.app-data-dir}}/{{id}} \
--roothttp=htdocs \
{{#required-permission.urn:AGL:permission::public:applications:read}}\
--alias=/icons:{{:#metadata.icons-dir}} \
@@ -134,7 +134,7 @@ ExecStart=/usr/bin/afb-daemon --port={{:#metadata.http-port}} --random-token \
ExecStart=/usr/bin/afb-daemon \
--rootdir={{:#metadata.install-dir}} \
- --workdir={{&#metadata.install-dir}} \
+ --workdir={{&#metadata.install-dir}}/{{id}} \
{{^required-permission.urn:AGL:permission::partner:service:no-ws}}\
--ws-server=unix:%t/bindings/{{:#target}} \
{{/required-permission.urn:AGL:permission::partner:service:no-ws}}\