mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
Merge "BuildSystem: Avoid $EUID and use id -u instead."
This commit is contained in:
2
Makefile
2
Makefile
@@ -624,7 +624,7 @@ oldmodcheck:
|
||||
ld-cache-update:
|
||||
ifneq ($(LDCONFIG),)
|
||||
ifeq ($(DESTDIR),) # DESTDIR means binary archive creation; ldconfig should be run on postinst
|
||||
@if [ $${EUID} -eq 0 ] ; then \
|
||||
@if [ $$(id -u) -eq 0 ] ; then \
|
||||
$(LDCONFIG) "$(ASTLIBDIR)/" ; \
|
||||
else \
|
||||
echo " WARNING WARNING WARNING" ;\
|
||||
|
Reference in New Issue
Block a user