Do not use a login shell for LUSER
Most books have something like "exec /bin/bash" in .bash_profile for the building user. This results in stopping and waiting for commands when running a a login shell. The current jhalfs way of removing .bash_profile is suboptimal, since a user may want to login as $(LUSER) and expect that the environment is set (without having to source .bashrc). So remove the "-i" flag in "sudo -u $(LUSER) ..."
This commit is contained in:
parent
2a9b0c3181
commit
20e3fcdec2
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ crLOGDIR = /\$(SCRIPT_ROOT)/$LOGDIRBASE
|
|||
crTESTLOGDIR = /\$(SCRIPT_ROOT)/$TESTLOGDIRBASE
|
||||
crFILELOGDIR = /\$(SCRIPT_ROOT)/$FILELOGDIRBASE
|
||||
|
||||
SU_LUSER = sudo -u \$(LUSER) -i sh -c
|
||||
SU_LUSER = sudo -u \$(LUSER) sh -c
|
||||
LUSER_HOME = \$(LHOME)/\$(LUSER)
|
||||
PRT_DU = echo -e "\nKB: \`du -skx --exclude=\$(SCRIPT_ROOT) --exclude=lost+found \$(MOUNT_PT) \`\n"
|
||||
PRT_DU_CR = echo -e "\nKB: \`du -skx --exclude=\$(SCRIPT_ROOT) --exclude=lost+found --exclude /var/lib / \`\n"
|
||||
|
|
Reference in a new issue