afb-daemon: Add /tmp has fallback for uploads 76/21376/2 7.99.1 halibut/7.99.1 halibut_7.99.1
authorJosé Bollo <jose.bollo@iot.bzh>
Thu, 23 May 2019 08:21:43 +0000 (10:21 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Wed, 29 May 2019 08:59:58 +0000 (08:59 +0000)
commitd6f6df814d87b5d5f77570196576637c8deb9afe
tree4d1a83d59aa8ce27d1c6ac3eddb76378bad3d7ea
parentf9c743046f94769c25ffc5bfd8d190c53cc4d613
afb-daemon: Add /tmp has fallback for uploads

During its start, when implementing HTTP server,
afb-daemon checked that the upload directory was
accessible and writable and afb-daemon refused to
start when it was not the case.

When trying to use systemd's DynamicUser for platform
services, it had the effect to forbid service to run.

That commit add the directory /tmp as a fallback
upload directory.

Bug-AGL: SPEC-2446

Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Change-Id: Ib4ee456d71cb1aefa19e8eed6774ef5f77919366
src/main-afb-daemon.c