Skip to content

Commit

Permalink
Update sample installation scripts
Browse files Browse the repository at this point in the history
* Install firewalld in Rocky 9 sample script
* Install AM pipeline in sample scripts
* Restore freshclam wait in Jammy script
  • Loading branch information
replaceafill authored Feb 20, 2024
1 parent 3974f41 commit 861b0db
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ Installation instructions

.. literalinclude:: scripts/am-rocky-rpm.sh
:language: bash
:lines: 110-112
:lines: 112-114

#. Complete :ref:`Post Install Configuration <rocky-post-install-config>`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ Ubuntu 22.04 (Jammy) installation instructions

.. literalinclude:: scripts/am-jammy-deb.sh
:language: bash
:lines: 45-54
:lines: 45-55

If you have trouble with the gearman or clamav command try restarting it:

Expand All @@ -158,7 +158,7 @@ Ubuntu 22.04 (Jammy) installation instructions

.. literalinclude:: scripts/am-jammy-deb.sh
:language: bash
:lines: 56-59
:lines: 57-60

#. Complete :ref:`Post Install Configuration <ubuntu-post-install-config>`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ sudo service elasticsearch restart
sudo systemctl enable elasticsearch

sudo service clamav-freshclam restart
sleep 120s
sudo service clamav-daemon start
sudo service gearman-job-server restart
sudo service archivematica-mcp-server start
Expand Down Expand Up @@ -71,3 +72,22 @@ sudo -u archivematica bash -c " \
--api-key="THIS_IS_THE_SS_APIKEY" \
--superuser
";

sudo -u archivematica bash -c " \
set -a -e -x
source /etc/default/archivematica-dashboard || \
source /etc/sysconfig/archivematica-dashboard \
|| (echo 'Environment file not found'; exit 1)
cd /usr/share/archivematica/dashboard
/usr/share/archivematica/virtualenvs/archivematica/bin/python manage.py install \
--username="admin" \
--password="archivematica" \
--email="[email protected]" \
--org-name="test" \
--org-id="test" \
--api-key="THIS_IS_THE_SS_APIKEY" \
--ss-url="http://localhost:8000" \
--ss-user="admin" \
--ss-api-key="THIS_IS_THE_SS_APIKEY" \
--site-url="http://localhost"
";
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ sudo -u root systemctl start clamd@scan
sudo -u root systemctl restart archivematica-dashboard
sudo -u root systemctl restart archivematica-mcp-server

sudo -u root yum install -y firewalld
sudo -u root systemctl start firewalld

sudo firewall-cmd --add-port=81/tcp --permanent
sudo firewall-cmd --add-port=8001/tcp --permanent
sudo firewall-cmd --reload
Expand All @@ -124,3 +127,22 @@ sudo -u archivematica bash -c " \
--api-key="THIS_IS_THE_SS_APIKEY" \
--superuser
";

sudo -u archivematica bash -c " \
set -a -e -x
source /etc/default/archivematica-dashboard || \
source /etc/sysconfig/archivematica-dashboard \
|| (echo 'Environment file not found'; exit 1)
cd /usr/share/archivematica/dashboard
/usr/share/archivematica/virtualenvs/archivematica/bin/python manage.py install \
--username="test" \
--password="test" \
--email="[email protected]" \
--org-name="test" \
--org-id="test" \
--api-key="THIS_IS_THE_SS_APIKEY" \
--ss-url="http://localhost4:7500" \
--ss-user="test" \
--ss-api-key="THIS_IS_THE_SS_APIKEY" \
--site-url="http://localhost:81"
";

0 comments on commit 861b0db

Please sign in to comment.