Skip to content

Commit

Permalink
Fix st2-self-check so it sets correct permissions on test packs which it
Browse files Browse the repository at this point in the history
copies over to /opt/stackstorm/packs.
  • Loading branch information
Kami committed Apr 24, 2019
1 parent a46aa1b commit 1342f74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions st2common/bin/st2-self-check
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ fi

echo "Copying asserts, fixtures, tests and examples packs."
chown -R root:st2packs st2tests/packs/
chmod -R 775 st2tests/packs/*
cp -R --preserve st2tests/packs/* /opt/stackstorm/packs/
cp -Rf --preserve /usr/share/doc/st2/examples /opt/stackstorm/packs/

Expand Down
2 changes: 1 addition & 1 deletion st2common/st2common/util/pack_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def apply_pack_owner_group(pack_path):

def apply_pack_permissions(pack_path):
"""
Recursively apply permission 770 to pack and its contents.
Recursively apply permission 775 to pack and its contents.
"""
# These mask is same as mode = 775
mode = stat.S_IRWXU | stat.S_IRWXG | stat.S_IROTH | stat.S_IXOTH
Expand Down

0 comments on commit 1342f74

Please sign in to comment.