Skip to content

Commit

Permalink
feat: provision ownership on /var/lib/deadline/credentials directory (#…
Browse files Browse the repository at this point in the history
…145)

Signed-off-by: Gahyun Suh <[email protected]>
  • Loading branch information
gahyusuh authored Feb 5, 2024
1 parent 951c7ef commit 3b3e7af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/deadline_worker_agent/installer/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions test/unit/startup/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down Expand Up @@ -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"),
Expand Down

0 comments on commit 3b3e7af

Please sign in to comment.