mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-01-23 21:28:15 -05:00
4a86bb42cc
even if the user id is zero, and then we'll always use it
22 lines
414 B
Plaintext
Executable File
22 lines
414 B
Plaintext
Executable File
#!/command/with-contenv bash
|
|
# shellcheck shell=bash
|
|
|
|
set -e
|
|
|
|
# This service is DEVELOPMENT only.
|
|
|
|
if [ "$DEVELOPMENT" = 'true' ]; then
|
|
. /bin/common.sh
|
|
cd /app/frontend || exit 1
|
|
HOME=/tmp/npmuserhome
|
|
export HOME
|
|
mkdir -p /app/frontend/dist
|
|
chown -R "$PUID:$PGID" /app/frontend/dist
|
|
|
|
log_info 'Starting frontend ...'
|
|
s6-setuidgid npmuser yarn install
|
|
exec s6-setuidgid npmuser yarn watch
|
|
else
|
|
exit 0
|
|
fi
|