Skip to content

Commit a2671b4

Browse files
committed
Fetch JumpServer's PAM clients submodule
Since v5.2.0, apps/accounts/clients is a git submodule (pam-clients) that the release tarball leaves empty, so manage.py compilemessages died with "No module named accounts.clients.distribution". Install and update now unpack pam-clients at the commit the release pins.
1 parent 71d76db commit a2671b4

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

‎ct/jumpserver.sh‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ function update_script() {
6262

6363
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "jumpserver" "jumpserver/jumpserver" "tarball" "latest" "" "" "v5."
6464
JMS_TAG="v$(<~/.jumpserver)"
65+
github_api_call "https://api.github.com/repos/jumpserver/jumpserver/contents/apps/accounts/clients?ref=${JMS_TAG}" /tmp/jms-clients.json
66+
fetch_and_deploy_from_url "https://github.com/jumpserver/pam-clients/archive/$(jq -r .sha /tmp/jms-clients.json).tar.gz" /opt/jumpserver/apps/accounts/clients
67+
rm -f /tmp/jms-clients.json
6568
CLEAN_INSTALL=1 fetch_and_deploy_gh_tag "koko" "jumpserver/koko" "$JMS_TAG"
6669

6770
restore_backup

‎install/jumpserver-install.sh‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ msg_ok "Built guacd"
8888
fetch_and_deploy_gh_release "jumpserver" "jumpserver/jumpserver" "tarball" "latest" "" "" "v5."
8989
# KoKo, Lina and Luna must match the core release exactly
9090
JMS_TAG="v$(<~/.jumpserver)"
91+
# The PAM clients are a git submodule, which the release tarball leaves empty
92+
github_api_call "https://api.github.com/repos/jumpserver/jumpserver/contents/apps/accounts/clients?ref=${JMS_TAG}" /tmp/jms-clients.json
93+
fetch_and_deploy_from_url "https://github.com/jumpserver/pam-clients/archive/$(jq -r .sha /tmp/jms-clients.json).tar.gz" /opt/jumpserver/apps/accounts/clients
94+
rm -f /tmp/jms-clients.json
9195

9296
msg_info "Configuring JumpServer Core"
9397
JMS_BOOTSTRAP_TOKEN=$(openssl rand -base64 32 | tr -dc 'a-zA-Z0-9' | cut -c1-32)

0 commit comments

Comments
 (0)