14 lines
171 B
Bash
Executable File
14 lines
171 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ -n "$PGID" ]; then
|
|
groupmod -g "$PGID" app
|
|
fi
|
|
|
|
if [ -n "$PUID" ]; then
|
|
usermod -u "$PUID" app
|
|
fi
|
|
|
|
chown -R app:app /config/
|
|
|
|
exec su app -c "$*"
|