Ignore:
Timestamp:
04/01/2020 09:11:32 AM (4 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
ablfs-more, legacy, trunk
Children:
0a577f5
Parents:
a73ed74
Message:

Two fixes:"

  • use /etc/passwd to check whether LUSER exists
  • use sudo -H -u $(LUSER) to be sure that HOME is set (depends on distro)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/libs/func_wrt_Makefile

    ra73ed74 r0835a10  
    3737crFILELOGDIR   = /\$(SCRIPT_ROOT)/$FILELOGDIRBASE
    3838
    39 SU_LUSER       = sudo -u \$(LUSER) sh -c
     39SU_LUSER       = sudo -H -u \$(LUSER) sh -c
    4040LUSER_HOME     = \$(LHOME)/\$(LUSER)
    4141PRT_DU         = echo -e "\nKB: \`du -skx --exclude=\$(SCRIPT_ROOT) --exclude=lost+found \$(MOUNT_PT) \`\n"
Note: See TracChangeset for help on using the changeset viewer.