mirror of https://github.com/pixelfed/pixelfed.git
add small bash/artisan helper commands
This commit is contained in:
parent
abee7d4d62
commit
adf1af3703
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
declare service="${PF_SERVICE:=worker}"
|
||||
declare user="${PF_USER:=www-data}"
|
||||
|
||||
exec docker compose exec --user "${user}" "${service}" php artisan "${@}"
|
|
@ -0,0 +1,12 @@
|
|||
#!/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[@]}"
|
Loading…
Reference in New Issue