We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a51ed84 commit c7c0a12Copy full SHA for c7c0a12
docker-env.yml
@@ -40,3 +40,5 @@ PHP_TIMEZONE=UTC
40
PHP_UID=1000
41
PHP_GID=1000
42
43
+# Default cli user (should be www-data)
44
+CLI_USER=www-data
docker/main/entrypoint.sh
@@ -48,7 +48,7 @@ case "$1" in
48
cli)
49
if [ -n "${CLI_SCRIPT}" ]; then
50
shift
51
- exec ${CLI_SCRIPT} "$@"
+ exec sudo -E -u "${CLI_USER}" ${CLI_SCRIPT} "$@"
52
else
53
echo "[ERROR] No CLI_SCRIPT in docker-env.yml defined"
54
exit 1
@@ -60,6 +60,6 @@ case "$1" in
60
## Set home dir (workaround)
61
export HOME=/home/
62
## Execute cmd
63
- sudo -E -u www-data "$@"
+ exec sudo -E -u "${CLI_USER}" "$@"
64
;;
65
esac
0 commit comments