Skip to content

Commit 15056e1

Browse files
committed
Move setting tobiko dir owner to the last action
After the owner of the tobiko home directory (/var/lib/tobiko) was set, some other actions like creating a subdir were done using the root user. This patch moves the action that sets the owner of that directory and its subdirectories to the end of the list of actions.
1 parent 18ad16d commit 15056e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

container-images/tcib/base/tobiko/tobiko.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ tcib_actions:
66
- run: cp /usr/share/tcib/container-images/tcib/base/tobiko/tobiko_sudoers /etc/sudoers.d/tobiko_sudoers
77
- run: chmod 440 /etc/sudoers.d/tobiko_sudoers
88
- run: mkdir -p /var/lib/tempest/external_files
9-
- run: chown -R tobiko.tobiko /var/lib/tobiko
109
- run: >-
1110
if [ '{{ tcib_distro }}' == 'rhel' ];then
1211
if [ -n "$(rpm -qa redhat-release)" ];then dnf -y remove python3-chardet; fi ; fi
@@ -23,6 +22,7 @@ tcib_actions:
2322
- run: python3 -m pip install 'tox==4.13'
2423
- run: cp /usr/share/tcib/container-images/tcib/base/tobiko/run_tobiko.sh /var/lib/tobiko/run_tobiko.sh
2524
- run: chmod +x /var/lib/tobiko/run_tobiko.sh
25+
- run: chown -R tobiko.tobiko /var/lib/tobiko
2626

2727
tcib_entrypoint: /var/lib/tobiko/run_tobiko.sh
2828

0 commit comments

Comments
 (0)