mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-21 22:11:26 +00:00
tune for new dottie image
This commit is contained in:
parent
b08bb3669d
commit
c1c361ef9b
1 changed files with 2 additions and 1 deletions
|
@ -3,6 +3,7 @@
|
||||||
set -e -o errexit -o nounset -o pipefail
|
set -e -o errexit -o nounset -o pipefail
|
||||||
|
|
||||||
declare project_root="${PWD}"
|
declare project_root="${PWD}"
|
||||||
|
declare user="${PF_USER:=www-data}"
|
||||||
|
|
||||||
if command -v git &>/dev/null; then
|
if command -v git &>/dev/null; then
|
||||||
project_root=$(git rev-parse --show-toplevel)
|
project_root=$(git rev-parse --show-toplevel)
|
||||||
|
@ -19,9 +20,9 @@ declare -a flags=(
|
||||||
--rm
|
--rm
|
||||||
--interactive
|
--interactive
|
||||||
--tty
|
--tty
|
||||||
|
--user "${user}"
|
||||||
--env TERM
|
--env TERM
|
||||||
--env COLORTERM
|
--env COLORTERM
|
||||||
--volume "/tmp:/tmp"
|
|
||||||
--volume "${project_root}:/var/www"
|
--volume "${project_root}:/var/www"
|
||||||
--workdir /var/www
|
--workdir /var/www
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue