bundles/paperless: fix config for static directory
This commit is contained in:
parent
72f756a686
commit
26ee966bd6
6 changed files with 38 additions and 53 deletions
|
@ -7,11 +7,6 @@ users['paperless'] = {
|
|||
|
||||
directories['/opt/paperless'] = {}
|
||||
|
||||
directories['/opt/paperless/static'] = {
|
||||
'owner': 'paperless',
|
||||
}
|
||||
|
||||
|
||||
files['/opt/paperless/paperless.conf'] = {
|
||||
'content_type': 'mako',
|
||||
'triggers': {
|
||||
|
@ -73,22 +68,6 @@ actions['paperless_migrate_database'] = {
|
|||
'postgres_db:paperless',
|
||||
},
|
||||
}
|
||||
actions['paperless_collectstatic'] = {
|
||||
'command': ' && '.join([
|
||||
'cd /opt/paperless/src/paperless-ngx/src',
|
||||
'sudo -Hu paperless PAPERLESS_CONFIGURATION_PATH=/opt/paperless/paperless.conf /opt/paperless/venv/bin/python manage.py collectstatic',
|
||||
]),
|
||||
'triggered': True,
|
||||
'needs': {
|
||||
# /mnt/paperless is NOT created by this bundle.
|
||||
'action:paperless_install',
|
||||
'directory:/mnt/paperless',
|
||||
'directory:/opt/paperless/static',
|
||||
'file:/opt/paperless/paperless.conf',
|
||||
'user:paperless',
|
||||
'postgres_db:paperless',
|
||||
},
|
||||
}
|
||||
|
||||
for worker in workers:
|
||||
files[f'/etc/systemd/system/paperless-{worker}.service'] = {
|
||||
|
@ -109,7 +88,6 @@ for worker in workers:
|
|||
'needs': {
|
||||
'action:paperless_install',
|
||||
'action:paperless_migrate_database',
|
||||
'action:paperless_collectstatic',
|
||||
f'file:/usr/local/lib/systemd/system/paperless-{worker}.service',
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue