Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- ###
- # Shell script to put on /etc/cron.daily to update Prey Anti-Theft software to the lastest version.
- ###
- #CURRENT_VERSION=$(dpkg-query -s prey|grep Version|cut -d' ' -f2)
- CURRENT_VERSION=$(dpkg-query -W -f='${Version}\n' prey)
- PACKAGE_VERSION=$(curl -s https://s3.amazonaws.com/prey-releases/node-client/latest.txt)
- if [ "$CURRENT_VERSION" != "$PACKAGE_VERSION" ]; then
- wget -q -O"/tmp/prey.deb" https://s3.amazonaws.com/prey-releases/node-client/"$PACKAGE_VERSION"/prey_"$PACKAGE_VERSION"_amd64.deb
- dpkg -i /tmp/prey.deb >/dev/null 2>/dev/null
- rm -f /tmp/prey.deb
- fi
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement