File tree Expand file tree Collapse file tree 1 file changed +1
-26
lines changed
Expand file tree Collapse file tree 1 file changed +1
-26
lines changed Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ jobs:
163163 - name : Update agent
164164 shell : bash
165165 run : |
166- sudo ./dist/rewst_agent_config.linux.bin --update --org-id ${{ vars.IT_ORG_ID }} --no-auto-updates --disable-agent-postback
166+ sudo ./dist/rewst_agent_config.linux.bin --update --org-id ${{ vars.IT_ORG_ID }} --no-auto-updates
167167
168168 - name : Check logs for no auto updater
169169 shell : bash
@@ -178,31 +178,6 @@ jobs:
178178 fi
179179 echo "Confirmed: no 'Starting auto updater' log line found"
180180
181- - name : Send test command
182- shell : bash
183- run : |
184- curl --location '${{ vars.IT_SEND_COMMAND_TRIGGER_URL }}' \
185- --form 'device_id="${{ steps.get_device_id.outputs.value }}"' \
186- --form 'commands="echo \"hello world\""'
187-
188- - name : Check logs for command received
189- shell : bash
190- run : |
191- logFile="/etc/rewst_remote_agent/${{ vars.IT_ORG_ID }}/rewst_agent.log"
192- logContent=$(cat "$logFile")
193- echo "$logContent"
194-
195- if ! echo "$logContent" | grep -qF "Command completed"; then
196- echo "ERROR: Expected log line not found: Command completed"
197- exit 1
198- fi
199-
200- if echo "$logContent" | grep -qF "Postback already sent"; then
201- echo "ERROR: Unexpected log line found: Postback already sent"
202- exit 1
203- fi
204- echo "All log checks passed"
205-
206181 - name : Update agent with syslog
207182 shell : bash
208183 run : |
You can’t perform that action at this time.
0 commit comments