From dc9695641b0e2b9ff160bf3b4d6916896e704c91 Mon Sep 17 00:00:00 2001 From: SourceDoctor Date: Sun, 14 Jun 2020 23:46:58 +0200 Subject: [PATCH] Application sudo correction (#306) --- snmp/pureftpd.py | 2 +- snmp/raspberry.sh | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/snmp/pureftpd.py b/snmp/pureftpd.py index 1c768e1..a2c7567 100755 --- a/snmp/pureftpd.py +++ b/snmp/pureftpd.py @@ -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 = {} diff --git a/snmp/raspberry.sh b/snmp/raspberry.sh index a2f9241..df4ffce 100755 --- a/snmp/raspberry.sh +++ b/snmp/raspberry.sh @@ -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'