GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

/

gosu-entrypoint.sh

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
executable file
·
30 lines (25 loc) · 904 Bytes
/

gosu-entrypoint.sh

Copy path

File metadata and controls

executable file
·
30 lines (25 loc) · 904 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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.