mirror of
https://github.com/eLvErDe/hwraid.git
synced 2025-07-24 22:34:21 +02:00
[megaclisas-status] Fix for use under cron by Inglebard
This commit is contained in:
parent
6d0915ffea
commit
2f752f4703
@ -38,7 +38,7 @@ def print_usage():
|
||||
|
||||
# We need root access to query
|
||||
if __name__ == '__main__':
|
||||
if os.getenv('USER') != 'root':
|
||||
if os.getenv('LOGNAME') != 'root':
|
||||
print '# This script requires Administrator privs! e.g :\r'
|
||||
print 'sudo '+str(sys.argv[0])+'\r'
|
||||
sys.exit(5)
|
||||
|
Loading…
x
Reference in New Issue
Block a user