OutsideIT / FireMotD

:fire: Fire Framework Linux MoTD Generator :fire:
https://outsideit.net/firemotd
GNU General Public License v3.0
174 stars 45 forks source link

nginx version shown only when ran as root #58

Closed CyberKiller40 closed 7 years ago

CyberKiller40 commented 7 years ago

Current: on a machine with a running nginx server, using FireMotD as root will show the version of nginx; when ran as a normal user, this information is not shown

If possible please make this info show up when running as a normal user also.

dimon222 commented 7 years ago

Is nginx symlink up for user that u have? If not, then global reference via "nginx -v" obviously will not work.

CyberKiller40 commented 7 years ago

nginx is in /usr/sbin/nginx which is not on PATH for the normal user, but if called directly then it's executable... So I made a symlink to /usr/bin/nginx and now it's working, thx.