mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-24 07:21:27 +00:00
12 lines
237 B
Bash
Executable file
12 lines
237 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}" "${service}" "${command[@]}"
|