Skip to content

Commit

Permalink
clone packs into user_home/.st2packs directory (StackStorm#5845)
Browse files Browse the repository at this point in the history
Openshift does not allow packs to be cloned to home directory as they are mounted at `/`.
Proposing to use a directory `.st2packs` in home directory.
  • Loading branch information
sekharsr authored Feb 3, 2023
1 parent f71beb6 commit 8d2304e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ in development

Added
~~~~~
* Move `git clone` to `user_home/.st2packs` #5845

* Error on `st2ctl status` when running in Kubernetes. #5851
Contributed by @mamercad
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 @@ -129,7 +129,7 @@ def download_pack(
with lock_file:
try:
user_home = os.path.expanduser("~")
abs_local_path = os.path.join(user_home, temp_dir_name)
abs_local_path = os.path.join(user_home, ".st2packs", temp_dir_name)

if pack_url.startswith("file://"):
# Local pack
Expand Down

0 comments on commit 8d2304e

Please sign in to comment.