Skip to content

Commit 8d2304e

Browse files
authored
clone packs into user_home/.st2packs directory (#5845)
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.
1 parent f71beb6 commit 8d2304e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ in development
66

77
Added
88
~~~~~
9+
* Move `git clone` to `user_home/.st2packs` #5845
910

1011
* Error on `st2ctl status` when running in Kubernetes. #5851
1112
Contributed by @mamercad

st2common/st2common/util/pack_management.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def download_pack(
129129
with lock_file:
130130
try:
131131
user_home = os.path.expanduser("~")
132-
abs_local_path = os.path.join(user_home, temp_dir_name)
132+
abs_local_path = os.path.join(user_home, ".st2packs", temp_dir_name)
133133

134134
if pack_url.startswith("file://"):
135135
# Local pack

0 commit comments

Comments
 (0)