GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — node-dev-docker/gosu-entrypoint.sh at master · evryfs/node-dev-docker
This repository was archived by the owner on Sep 20, 2022. It is now read-only.
Expand file tree/ Copy pathgosu-entrypoint.shMore file actions executable file ·30 lines (25 loc) · 904 Bytes / Copy pathgosu-entrypoint.shFile metadata and controlsexecutable file ·30 lines (25 loc) · 904 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 #!/bin/bash # Author: Jonathan Meyer <[email protected]> # Source: https://github.com/gisjedi/gosu-entrypoint # Version: master set -e # If GOSU_CHOWN environment variable set, recursively chown all specified directories # to match the user:group set in GOSU_USER environment variable. if [ -n "$GOSU_CHOWN" ]; then for DIR in $GOSU_CHOWN do chown -R $GOSU_USER $DIR done fi # If GOSU_USER environment variable set to something other than 0:0 (root:root), # become user:group set within and exec command passed in args if [ "$GOSU_USER" != "0:0" ]; then IFS=':' read -r -a uidgid <<< $GOSU_USER groupmod -g "${uidgid[1]}" node || true usermod -u "${uidgid[0]}" -g "${uidgid[1]}" node export HOME=/home/node USER=node cd /app exec gosu $GOSU_USER "$@" fi # If GOSU_USER was 0:0 exec command passed in args without gosu (assume already root) exec "$@" |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |