„autoupdate.yml“ ändern

This commit is contained in:
olli 2022-09-28 14:37:13 +02:00
parent de5de90643
commit d7490c2e50

View File

@ -71,7 +71,7 @@
marker: "# {mark} ANSIBLE MANAGED BLOCK" marker: "# {mark} ANSIBLE MANAGED BLOCK"
block: | block: |
[ -e /root/server-$(hostname -s)/$(hostname -s).sh ] && bash -ex /root/server-$(hostname -s)/$(hostname -s).sh >/var/log/server-$(hostname -s)-update.log 2>&1 [ -e /root/server-$(hostname -s)/$(hostname -s).sh ] && bash -ex /root/server-$(hostname -s)/$(hostname -s).sh >/var/log/server-$(hostname -s)-update.log 2>&1
g_echo_warn "$(egrep -B1 "^changed" /var/log/server-$(g_echo_error "$(egrep -q -B1 -i "^error|^fatal" /var/log/server-$(hostname -s)-update.log && cat /var/log/server-$(hostname -s)-update.log)"hostname -s)-update.log)" g_echo_warn "$(egrep -B1 "^changed" /var/log/server-$($(hostname -s)-update.log"
g_echo_error "$(egrep -q -B1 -i "^error|^fatal" /var/log/server-$(hostname -s)-update.log && cat /var/log/server-$(hostname -s)-update.log)" g_echo_error "$(egrep -q -B1 -i "^error|^fatal" /var/log/server-$(hostname -s)-update.log && cat /var/log/server-$(hostname -s)-update.log)"
backup: yes backup: yes
validate: /bin/bash -n %s validate: /bin/bash -n %s