mirror of https://github.com/pixelfed/pixelfed.git
18 lines
294 B
Bash
Executable File
18 lines
294 B
Bash
Executable File
#!/bin/bash
|
|
|
|
declare service="${PF_SERVICE:=worker}"
|
|
declare user="${PF_USER:=www-data}"
|
|
|
|
declare -a command=("bash")
|
|
|
|
if [[ $# -ge 1 ]]; then
|
|
command=("$@")
|
|
fi
|
|
|
|
exec docker compose exec \
|
|
--user "${user}" \
|
|
--env TERM \
|
|
--env COLORTERM \
|
|
"${service}" \
|
|
"${command[@]}"
|