maj chemin pour phpwrappers
This commit is contained in:
parent
90ca62984d
commit
c1c369f554
@ -52,7 +52,7 @@ declare -A PHPWRAPPER_MODES=(
|
||||
)
|
||||
|
||||
projdir=
|
||||
install_phpwrappers=auto
|
||||
install_phpwrappers=1
|
||||
args=(
|
||||
"Mettre à jour le script runphp"
|
||||
"[path/to/runphp]"
|
||||
@ -63,7 +63,6 @@ Copier les fichiers pour un projet de l'université de la Réunion:
|
||||
- le script build est mis à jour
|
||||
- les wrappers PHP pour la gestion des tâches de fond sont mis à jour le cas
|
||||
échéant"
|
||||
-p,--phpwrappers-install install_phpwrappers=1 "forcer l'installation des wrappers PHP"
|
||||
--np,--no-phpwrappers-install install_phpwrappers= "ne pas installer les wrappers PHP"
|
||||
)
|
||||
parse_args "$@"; set -- "${args[@]}"
|
||||
@ -156,35 +155,31 @@ if [ -n "$projdir" ]; then
|
||||
'
|
||||
fi
|
||||
|
||||
sbin_path=sbin
|
||||
sbin2proj=..
|
||||
cli_path=cli/config
|
||||
cli2proj=../..
|
||||
if [ "$install_phpwrappers" == auto ]; then
|
||||
if [ ! -f "$PROJDIR/$COMPOSERDIR/composer.json" ]; then
|
||||
# ce doit être un projet PHP
|
||||
install_phpwrappers=
|
||||
elif [ -d "$projdir/cli/config" ]; then
|
||||
install_phpwrappers=1
|
||||
sbin_path=sbin
|
||||
sbin2proj=..
|
||||
cli_path=cli/config
|
||||
cli2proj=../..
|
||||
elif [ -d "$projdir/cli_config" ]; then
|
||||
install_phpwrappers=1
|
||||
sbin_path=sbin
|
||||
sbin2proj=..
|
||||
cli_path=cli_config
|
||||
cli2proj=../..
|
||||
elif [ -d "$projdir/_cli" ]; then
|
||||
install_phpwrappers=1
|
||||
sbin_path=sbin
|
||||
sbin2proj=..
|
||||
cli_path=_cli
|
||||
cli2proj=../..
|
||||
else
|
||||
install_phpwrappers=
|
||||
fi
|
||||
if [ -z "$install_phpwrappers" ]; then
|
||||
install_phpwrappers=
|
||||
elif [ ! -f "$PROJDIR/$COMPOSERDIR/composer.json" ]; then
|
||||
# ce doit être un projet PHP
|
||||
install_phpwrappers=
|
||||
elif [ -d "$projdir/cli/config" ]; then
|
||||
install_phpwrappers=1
|
||||
sbin_path=sbin
|
||||
sbin2proj=..
|
||||
cli_path=cli/config
|
||||
cli2proj=../..
|
||||
elif [ -d "$projdir/cli_config" ]; then
|
||||
install_phpwrappers=1
|
||||
sbin_path=sbin
|
||||
sbin2proj=..
|
||||
cli_path=cli_config
|
||||
cli2proj=..
|
||||
elif [ -d "$projdir/_cli" ]; then
|
||||
install_phpwrappers=1
|
||||
sbin_path=sbin
|
||||
sbin2proj=..
|
||||
cli_path=_cli
|
||||
cli2proj=..
|
||||
else
|
||||
install_phpwrappers=
|
||||
fi
|
||||
|
||||
if [ -n "$install_phpwrappers" ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user