1
0
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:
SourceDoctor
2020-06-14 23:46:58 +02:00
committed by GitHub
parent 6b96466473
commit dc9695641b
2 changed files with 1 additions and 3 deletions

View File

@@ -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 = {}

View File

@@ -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'