@@ -27,9 +27,9 @@ Make sure that you take a back up of your SQLite database before you proceed.
2727 source /etc/default/archivematica-storage-service || \
2828 source /etc/sysconfig/archivematica-storage-service \
2929 || (echo 'Environment file not found'; exit 1)
30- cd /usr/lib /archivematica/storage-service
31- /usr/share/archivematica/virtualenvs/archivematica-storage-service/bin/python manage.py dumpdata \
32- --exclude=auth.permission --exclude=contenttypes --exclude=sessions.session --natural-foreign --natural-primary --indent 4 -o /tmp/datadump.json
30+ /usr/share /archivematica/virtualenvs/archivematica- storage-service/bin/python -m archivematica.storage_service.storage_service.manage \
31+ dumpdata \
32+ --exclude=auth.permission --exclude=contenttypes --exclude=sessions.session --natural-foreign --natural-primary --indent 4 -o /tmp/datadump.json
3333 ";
3434
35353. Create the MySQL database::
@@ -53,8 +53,8 @@ Make sure that you take a back up of your SQLite database before you proceed.
5353 source /etc/default/archivematica-storage-service || \
5454 source /etc/sysconfig/archivematica-storage-service \
5555 || (echo 'Environment file not found'; exit 1)
56- cd /usr/lib /archivematica/storage-service
57- /usr/share/archivematica/virtualenvs/archivematica-storage-service/bin/python manage.py migrate
56+ /usr/share /archivematica/virtualenvs/archivematica- storage-service/bin/python -m archivematica.storage_service.storage_service.manage \
57+ migrate
5858 ";
5959
60607. Load the JSON export::
@@ -64,8 +64,8 @@ Make sure that you take a back up of your SQLite database before you proceed.
6464 source /etc/default/archivematica-storage-service || \
6565 source /etc/sysconfig/archivematica-storage-service \
6666 || (echo 'Environment file not found'; exit 1)
67- cd /usr/lib /archivematica/storage-service
68- /usr/share/archivematica/virtualenvs/archivematica-storage-service/bin/python manage.py loaddata /tmp/datadump.json
67+ /usr/share /archivematica/virtualenvs/archivematica- storage-service/bin/python -m archivematica.storage_service.storage_service.manage \
68+ loaddata /tmp/datadump.json
6969 ";
7070
71718. Start Storage Service::
0 commit comments