mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 08:13:16 +00:00
13 lines
237 B
Text
13 lines
237 B
Text
|
#!/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}" "${service}" "${command[@]}"
|