Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Commit

Permalink
Get course profiles from jupyterhub's values.yaml.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanlovett committed Feb 9, 2021
1 parent 32a1b0c commit 5c772ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions save-course-emails.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

# set -e

# profiles defined in our helm config
custom_profiles="/etc/jupyterhub/config/custom.profiles"
# all hub configuration
config_values="/etc/jupyterhub/config/values.yaml"

# output location
profile_dir="/srv/jupyterhub/profiles.d"
Expand All @@ -21,7 +21,7 @@ while true ; do

if [ ! -d $profile_dir ]; then mkdir -p $profile_dir ; fi

profiles=`jq -r 'keys[]' ${custom_profiles}`
profiles=`cat ${config_values} | yq .custom.profiles | jq -r 'keys[]'`
echo profiles: ${profiles}

# write out email lists for each profile
Expand Down

0 comments on commit 5c772ac

Please sign in to comment.