diff --git a/src/deadline_worker_agent/installer/install.sh b/src/deadline_worker_agent/installer/install.sh index 8121f395..eedd1caa 100755 --- a/src/deadline_worker_agent/installer/install.sh +++ b/src/deadline_worker_agent/installer/install.sh @@ -334,12 +334,16 @@ echo "Done provisioning log directory (/var/log/amazon/deadline)" # Provision ownership/persistence on persistence directory echo "Provisioning persistence directory (/var/lib/deadline)" mkdir -p /var/lib/deadline/queues +mkdir -p /var/lib/deadline/credentials chown "${wa_user}:${job_group}" \ /var/lib/deadline \ /var/lib/deadline/queues +chown "${wa_user}" /var/lib/deadline/credentials chmod 750 \ /var/lib/deadline \ /var/lib/deadline/queues +chmod 700 \ + /var/lib/deadline/credentials if [ -f /var/lib/deadline/worker.json ]; then chown "${wa_user}:${wa_user}" /var/lib/deadline/worker.json chmod 600 /var/lib/deadline/worker.json diff --git a/test/unit/startup/test_config.py b/test/unit/startup/test_config.py index 10a0cfde..04487d37 100644 --- a/test/unit/startup/test_config.py +++ b/test/unit/startup/test_config.py @@ -345,7 +345,7 @@ def test_impersonation_mutual_exclusion( class TestInit: - """Tests for Configutation.__init__""" + """Tests for Configuration.__init__""" @pytest.mark.parametrize( argnames=("farm_id", "fleet_id", "profile", "verbose"), @@ -865,7 +865,7 @@ def test_uses_worker_settings( class TestLog: - """Tests for Configutation.log()""" + """Tests for Configuration.log()""" @pytest.mark.parametrize( ("farm_id", "fleet_id", "profile", "verbose"),