mirror of https://github.com/pixelfed/pixelfed
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
237 B
Plaintext
13 lines
237 B
Plaintext
1 year ago
|
#!/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[@]}"
|