cmprovision icon indicating copy to clipboard operation
cmprovision copied to clipboard

public/uploads directory missing when built from source

Open ysi-camerona opened this issue 2 years ago • 2 comments

I built cmprovision from source using dpkg-buildpackage. I then compared my local deb against the 1.6.3 release and noticed that /var/lib/cmprovision/public/uploads was missing from my local deb. This causes the /images endpoint to return a 500 error (Images.php:21).

I suspect this is because the uploads directory is not included in the Git source. I solved the problem by creating a debian/dirs file and adding the directory to it, but the documentation suggests this is generally not desirable.

Should I be building the source differently, or is this a bug that a PR should be submitted for?

ysi-camerona avatar Sep 19 '23 14:09 ysi-camerona

My build script does this effectively ...

mkdir public/uploads
dpkg-buildpackage -us -uc --build=all

barneyman avatar Nov 23 '23 08:11 barneyman

Thanks barney, I solved the issue locally in a similar way. I created the debian/dirs file (documentation) with the contents:

var/lib/cmprovision/public/uploads

ysi-camerona avatar Nov 23 '23 12:11 ysi-camerona