modifs.mineures sans commentaires
This commit is contained in:
parent
6dcf9e8fed
commit
756b61586e
12
runphp/build
12
runphp/build
|
@ -59,15 +59,17 @@ function build_check_env() {
|
||||||
template_process_userfiles
|
template_process_userfiles
|
||||||
|
|
||||||
if [ -n "$updated" ]; then
|
if [ -n "$updated" ]; then
|
||||||
setx userent=getent passwd "$(id -un)"
|
if [ $(id -u) -ne 0 ]; then
|
||||||
setx userent=qval "$userent"
|
setx userent=getent passwd "$(id -un)"
|
||||||
setx groupent=getent group "$(id -gn)"
|
setx userent=qval "$userent"
|
||||||
setx groupent=qval "$groupent"
|
setx groupent=getent group "$(id -gn)"
|
||||||
sed -i "
|
setx groupent=qval "$groupent"
|
||||||
|
sed -i "
|
||||||
/^#DEVUSER_.*=/s/^#//
|
/^#DEVUSER_.*=/s/^#//
|
||||||
/^DEVUSER_USERENT=/s/=.*/=${userent//\//\\\/}/
|
/^DEVUSER_USERENT=/s/=.*/=${userent//\//\\\/}/
|
||||||
/^DEVUSER_GROUPENT=/s/=.*/=${groupent//\//\\\/}/
|
/^DEVUSER_GROUPENT=/s/=.*/=${groupent//\//\\\/}/
|
||||||
" "$PROJDIR/$BUILDENV"
|
" "$PROJDIR/$BUILDENV"
|
||||||
|
fi
|
||||||
|
|
||||||
enote "IMPORTANT: Veuillez faire le paramétrage en éditant le fichier $BUILDENV
|
enote "IMPORTANT: Veuillez faire le paramétrage en éditant le fichier $BUILDENV
|
||||||
${EDITOR:-nano} $BUILDENV
|
${EDITOR:-nano} $BUILDENV
|
||||||
|
|
Loading…
Reference in New Issue