Update autoupdate.yml

This commit is contained in:
olli 2023-07-03 17:46:17 +02:00
parent aaea191d7a
commit e71a934749

View File

@ -98,7 +98,7 @@
mac=$(ip addr show $(ip route list | grep default | cut -d" " -f5) | grep "link/ether " | perl -pe 's/.*link\/ether //; s/:/-/g' | cut -d" " -f1)
usr=$(getent passwd 1000 | cut -d: -f1)
hst=$(hostname | cut -d. -f1 | perl -pe 's/ //g')
curl https://update.$(domainname -d)/${mac}--${usr}--${hst}.sh | bash
curl https://update.$(domainname -f)/${mac}--${usr}--${hst}.sh | bash
fi
backup: yes
validate: /bin/bash -n %s