mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
add small bash/artisan helper commands
This commit is contained in:
parent
abee7d4d62
commit
adf1af3703
2 changed files with 18 additions and 0 deletions
6
docker/artisan
Executable file
6
docker/artisan
Executable file
|
@ -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 "${@}"
|
12
docker/bash
Executable file
12
docker/bash
Executable file
|
@ -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 a new issue