modifs.mineures sans commentaires

This commit is contained in:
Jephté Clain 2024-10-18 17:46:56 +04:00
parent 92827bf0c1
commit f0280596a8
1 changed files with 7 additions and 0 deletions

View File

@ -46,6 +46,7 @@ p == 1 {
}
' >"$userconf"
initial_config=
elif [ -n "$projdir" ]; then
# forcer BUILDENV0=..env.dist et BUILDENV=.env pour les projets de
# l'université de la Réunion
@ -55,6 +56,7 @@ elif [ -n "$projdir" ]; then
/^BUILDENV0=/s/=.*/=..env.dist/
/^BUILDENV=/s/=.*/=.env/
'
else
initial_config=1
userconf="$MYDIR/runphp.userconf"
@ -82,6 +84,11 @@ if [ -n "$projdir" ]; then
'
initial_config=1
fi
if [ ! -f "$projdir/.runphp.conf" ]; then
sed <"$MYDIR/dot-runphp.conf" >"$projdir/.runphp.conf" '
/^RUNPHP=/s/=.*/=sbin\/runphp/
'
fi
fi
[ -n "$initial_config" ]