„autoupdate.yml“ ändern
This commit is contained in:
parent
1aa17feef2
commit
8e20c9a57b
@ -73,7 +73,7 @@
|
||||
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
|
||||
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 && tail -n 50 /var/log/server-$(hostname -s)-update.log)"
|
||||
backup: yes
|
||||
validate: /bin/bash -n %s
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user