2 Commits

Author SHA1 Message Date
f7167745a5 chore: publish 0.2.3+4.1.0 release
All checks were successful
continuous-integration/drone/push Build is passing
2023-07-12 14:43:05 +02:00
71c2fd8eeb don't break if hashed uid starts with 0
All checks were successful
continuous-integration/drone/push Build is passing
2023-07-12 14:41:46 +02:00
3 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
export CUSTOM_ENTRYPOINT_VERSION=v14
export OIDC_CONF_VERSION=v1
export PAM_EXEC_OAUTH2_YAML_VERSION=v1
export PAM_SCRIPT_AUTH_VERSION=v4
export PAM_SCRIPT_AUTH_VERSION=v5

View File

@ -29,7 +29,7 @@ services:
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
- "coop-cloud.${STACK_NAME}.version=0.2.2+4.1.0"
- "coop-cloud.${STACK_NAME}.version=0.2.3+4.1.0"
entrypoint: /docker-entrypoint.sh
command: /init

View File

@ -10,7 +10,7 @@ if ! id "$PAM_USER" &>/dev/null; then
# without it, UID→username mapping changes on every container restart, which
# creates file ownership issues and prevents RStudio from working.
# See https://github.com/WASHNote/washnote-apps/issues/67
uid=$(echo "$PAM_USER" | md5sum | grep -Eo "[[:digit:]]{3}" | head -n1)
uid=$(echo "$PAM_USER" | md5sum | grep -Eo "[[:digit:]]{3}" | head -n1 | sed -E 's/^0+//')
uid=$((1000+uid))
adduser --uid="$uid" "$PAM_USER" --disabled-password --quiet --gecos ""
fi