File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed
Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 7070 - name : Cleanup lxd
7171 run : test -z "$("$LXC" profile device show default | grep eth0)" || "$LXC" profile device remove default eth0
7272 - uses : whywaita/setup-lxd@v1
73+ if : ${{ needs.determine-runner.outputs.lxc_cmd == 'lxc' }}
7374 continue-on-error : true
7475 with :
7576 lxd_version : latest/stable
@@ -144,6 +145,7 @@ jobs:
144145 echo "VERSION=$version" >> "$GITHUB_ENV"
145146 echo "previous_version=${version}" >> $GITHUB_OUTPUT
146147 - uses : whywaita/setup-lxd@v1
148+ if : ${{ needs.determine-runner.outputs.lxc_cmd == 'lxc' }}
147149 continue-on-error : true
148150 with :
149151 lxd_version : latest/stable
@@ -185,6 +187,7 @@ jobs:
185187 LXC : " ${{ needs.determine-runner.outputs.lxc_cmd }}"
186188 steps :
187189 - uses : whywaita/setup-lxd@v1
190+ if : ${{ needs.determine-runner.outputs.lxc_cmd == 'lxc' }}
188191 continue-on-error : true
189192 with :
190193 lxd_version : latest/stable
@@ -369,6 +372,7 @@ jobs:
369372 - name : Cleanup lxd
370373 run : test -z "$("$LXC" profile device show default | grep eth0)" || "$LXC" profile device remove default eth0
371374 - uses : whywaita/setup-lxd@v1
375+ if : ${{ needs.determine-runner.outputs.lxc_cmd == 'lxc' }}
372376 continue-on-error : true
373377 with :
374378 lxd_version : latest/stable
Original file line number Diff line number Diff line change @@ -314,8 +314,9 @@ jobs:
314314 echo -e "${LOG_DIAG} ncp.log: "
315315 "${CONTAINER_CMD[@]}" -q ncp /bin/bash -c "tail -n20 /var/log/ncp.log" |& awk "{ print \"${LOG_DIAG} \" \$0 }" || true
316316 echo "================"
317- echo "Nextcloud log: "
318- "${CONTAINER_CMD[@]}" -q ncp cat /opt/ncdata/data/nextcloud.log
317+ echo "${LOG_DIAG} Nextcloud log: "
318+ "${CONTAINER_CMD[@]}" -q ncp /bin/bash -c 'ls -l /opt/ncdata/data/nextcloud.log' |& awk "{ print \"${LOG_DIAG} \" \$0 }" || true
319+ "${CONTAINER_CMD[@]}" -q ncp /bin/bash -c 'cat /opt/ncdata/data/nextcloud.log' |& awk "{ print \"${LOG_DIAG} \" \$0 }" || true
319320 sleep 12
320321 continue
321322 }
Original file line number Diff line number Diff line change @@ -312,11 +312,11 @@ jobs:
312312 echo "==========================================="
313313 ssh "${SSH_OPTIONS[@]}" "root@${SERVER_ADDRESS}" tail /var/log/ncp-install.log;
314314 echo "==========================================="
315- echo "and ncp.log:"
315+ echo "ncp.log:"
316316 echo "==========================================="
317317 ssh "${SSH_OPTIONS[@]}" "root@${SERVER_ADDRESS}" tail /var/log/ncp.log;
318318 echo "==========================================="
319- echo "and nextcloud.log:"
319+ echo "nextcloud.log:"
320320 ssh "${SSH_OPTIONS[@]}" "root@${SERVER_ADDRESS}" tail /opt/ncdata/data/nextcloud.log;
321321 exit 1
322322 }
You can’t perform that action at this time.
0 commit comments