artefactual-labs / am-packbuild

Archivematica package building scripts
GNU General Public License v2.0
4 stars 6 forks source link

dashboard, ss postinst: Create collectstatic dir #210

Closed mamedin closed 5 years ago

mamedin commented 5 years ago

When running the collectstatic command with the --clear option, the following directories are needed:

The --clear option deletes the directory and it fails when the directory doesn't exist, for example on fresh installations.

Connects to https://github.com/archivematica/Issues/issues/413

mamedin commented 5 years ago

The storage-service postinst script doesn't need this fix, because the archivematica-storage-service repository includes the static directory:

https://github.com/artefactual/archivematica-storage-service/tree/stable/0.13.x/storage_service/static

mamedin commented 5 years ago

Finally the SS needs the same change, it uses the /usr/lib/archivematica/storage-service/assets directory and fails on fresh installations when using the --clear option.

I updated the PR with this modification, and it is ready for CR.

scollazo commented 5 years ago

LGTM!