소스 검색

Fix for CentOS 8

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