dangogh opened a new pull request #2071: TO postinstall -- use builtin perl var 
to check for root user
URL: https://github.com/apache/incubator-trafficcontrol/pull/2071
 
 
   postinstall checks that it's being run as the root user using `$ENV{USER}`.  
 If running within a container, that doesn't exist.  Better to use `$>` (or 
`$EUID` if using `use English`).  It's much less dependent on the environment.
   
   ```
   $ perl -le 'print $>'
   298
   $ sudo perl -le 'print $>'
   0
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to