diff --git a/runphp/build b/runphp/build index 8368e79..721940a 100755 --- a/runphp/build +++ b/runphp/build @@ -1,10 +1,11 @@ #!/bin/bash # -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8 MYDIR="$(cd "$(dirname -- "$0")"; pwd)" -"$MYDIR/runphp" --bs --ue --ci || exit 1 +RUNPHP="$MYDIR/runphp" +"$RUNPHP" --bs --ue --ci || exit 1 PROJDIR=; COMPOSERDIR=; COMPOSERPHAR=; VENDORDIR=; BUILDENV0=; BUILDENV= BUILD_IMAGES=(php-apache mariadb10); export BUILD_FLAVOUR=; DIST=; IMAGENAME= -source "$MYDIR/runphp" || exit 1 +source "$RUNPHP" || exit 1 source "$PROJDIR/$VENDORDIR/nulib/php/load.sh" || exit 1 require: template @@ -118,7 +119,7 @@ function build_images() { [ "$ForceBuild" != all ] && args+=(--unless-exists) [ -n "$Pull" ] && args+=(--pull) [ -n "$NoCache" ] && args+=(--no-cache) - "$MYDIR/runphp" "${args[@]}" || die + "$RUNPHP" "${args[@]}" || die ;; *) if [ -z "$sourced" ]; then diff --git a/runphp/runphp.userconf b/runphp/runphp.userconf index 45fda24..b849b4b 100644 --- a/runphp/runphp.userconf +++ b/runphp/runphp.userconf @@ -3,7 +3,7 @@ PROJDIR= # composer: répertoire du projet composer (celui qui contient le fichier -# composer.json), chemin de composer.phar et répertoire vendor. ces chemions +# composer.json), chemin de composer.phar et répertoire vendor. ces chemins # doivent être relatifs à $PROJDIR COMPOSERDIR= COMPOSERPHAR= @@ -18,7 +18,7 @@ BUILD_IMAGES=(php-apache mariadb10) BUILD_FLAVOUR= ## En ce qui concerne DIST et IMAGENAME, les valeurs dans BUILDENV prennent le -## dessus. si BUILDENV *n'est pas* utilisé, ces valeur peuvent être spécifiées +## dessus. si BUILDENV *n'est pas* utilisé, ces valeurs peuvent être spécifiées ## ici # version de debian à utiliser pour l'image