diff --git a/roles/router/tasks/xray_lists.yml b/roles/router/tasks/xray_lists.yml index a68dc14..c304c30 100644 --- a/roles/router/tasks/xray_lists.yml +++ b/roles/router/tasks/xray_lists.yml @@ -43,8 +43,10 @@ mode: '0755' content: | #!/bin/sh + set -e out=$(/opt/xray-lists/venv/bin/xray-lists) + echo "$out" dns_changed=0 @@ -57,6 +59,7 @@ elif [ "$dns_changed" -eq 1 ]; then exit 10; elif [ "$elements_changed" -eq 1 ]; then exit 11; fi + exit 0 - name: deploy systemd service unit