From 5c772ac87b48eb7fc06a2c280f8c670ad6f2c41d Mon Sep 17 00:00:00 2001 From: ryanlovett Date: Tue, 9 Feb 2021 13:55:23 -0800 Subject: [PATCH] Get course profiles from jupyterhub's values.yaml. --- save-course-emails.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/save-course-emails.sh b/save-course-emails.sh index b50a728..d0d9645 100755 --- a/save-course-emails.sh +++ b/save-course-emails.sh @@ -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" @@ -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