mirror of
https://github.com/librenms/librenms-agent.git
synced 2024-05-09 09:54:52 +00:00
Application sudo correction (#306)
This commit is contained in:
@@ -34,7 +34,7 @@ if not output_data['error'] and configfile:
|
||||
output_data['errorString'] = "Configfile Error: '%s'" % e
|
||||
|
||||
|
||||
output = os.popen('sudo ' + pureftpwho_cmd + ' ' + pureftpwho_args).read()
|
||||
output = os.popen(pureftpwho_cmd + ' ' + pureftpwho_args).read()
|
||||
|
||||
data = {}
|
||||
|
||||
|
@@ -19,8 +19,6 @@ getStatusMPG4='codec_enabled MPG4'
|
||||
getStatusMJPG='codec_enabled MJPG'
|
||||
getStatusWMV9='codec_enabled WMV9'
|
||||
|
||||
[ $(id -u) -eq 0 ] || picmd="sudo $picmd"
|
||||
|
||||
$picmd $getTemp | $pised 's|[^0-9.]||g'
|
||||
$picmd $getVoltsCore | $pised 's|[^0-9.]||g'
|
||||
$picmd $getVoltsRamC | $pised 's|[^0-9.]||g'
|
||||
|
Reference in New Issue
Block a user