own3mall пре 5 година
родитељ
комит
63b0f441ef
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      ogp_agent_run

+ 1 - 1
ogp_agent_run

@@ -111,7 +111,7 @@ detectSystemD(){
 				# Update service to use oneshot and not forking
 				if [ -e "$SystemDDir/ogp_agent.service" ]; then
 					# Check to see if it's using oneshot
-					usingOneShot=$(cat "$SystemDDir/ogp_agent.service" | grep -o "oneshot")
+					usingOneShot=$(echo "$sudoPass" | sudo -S -p "" cat "$SystemDDir/ogp_agent.service" | grep -o "oneshot")
 					if [ -z "$usingOneShot" ]; then
 						replaceSystemDService=true
 					fi