Update autoupdate.yml
This commit is contained in:
parent
aaea191d7a
commit
e71a934749
@ -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)
|
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)
|
usr=$(getent passwd 1000 | cut -d: -f1)
|
||||||
hst=$(hostname | cut -d. -f1 | perl -pe 's/ //g')
|
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
|
fi
|
||||||
backup: yes
|
backup: yes
|
||||||
validate: /bin/bash -n %s
|
validate: /bin/bash -n %s
|
||||||
|
Loading…
Reference in New Issue
Block a user