Skip to content

Commit 173da23

Browse files
committed
Fix st2-self-check so it sets correct permissions on test packs which it
copies over to /opt/stackstorm/packs.
1 parent 83f03ba commit 173da23

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

st2common/bin/st2-self-check

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ fi
107107

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

st2common/st2common/util/pack_management.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ def apply_pack_owner_group(pack_path):
290290

291291
def apply_pack_permissions(pack_path):
292292
"""
293-
Recursively apply permission 770 to pack and its contents.
293+
Recursively apply permission 775 to pack and its contents.
294294
"""
295295
# These mask is same as mode = 775
296296
mode = stat.S_IRWXU | stat.S_IRWXG | stat.S_IROTH | stat.S_IXOTH

0 commit comments

Comments
 (0)