diff --git a/condor/01-role.conf b/condor/01-role.conf index 2c9f422..a6bafb7 100644 --- a/condor/01-role.conf +++ b/condor/01-role.conf @@ -2,7 +2,8 @@ use ROLE : Execute EXECUTE=/scratch DOCKER=/usr/local/libexec/condor-docker STARTER_JOB_ENVIRONMENT= SITE_NAME=MWT2 -DOCKER_VOLUMES = DATA +DOCKER_VOLUMES = DATA,PW DOCKER_VOLUME_DIR_DATA = /data -DOCKER_MOUNT_VOLUMES = DATA +DOCKER_VOLUME_DIR_PW = /etc/passwd +DOCKER_MOUNT_VOLUMES = DATA, PW DOCKER_LOG_DRIVER_NONE = false diff --git a/scripts/sync_users_wrapper.sh b/scripts/sync_users_wrapper.sh index aa48240..cef7083 100755 --- a/scripts/sync_users_wrapper.sh +++ b/scripts/sync_users_wrapper.sh @@ -4,3 +4,4 @@ echo "Sleeping for $TIME seconds" sleep $TIME cd /usr/local/ciconnect source /usr/local/ciconnect/config && ./sync_users.sh -u root.atlas-af -g root.atlas-af -e https://api.ci-connect.net:18080 >> /var/log/provisioner.log 2>&1 +[[ -d /passwd ]] && cp /etc/passwd /passwd