Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # Instructions
- # Just put this script on /etc/cron.daily and set eXecute permission
- # ChangeLog
- # Removed the move/un-move part because there is no need now. Prey supports Systemd in a good way.
- ARCH=amd64
- 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"_$ARCH.deb
- dpkg -i /tmp/prey.deb >/dev/null 2>/dev/null
- rm -f /tmp/prey.deb
- logger "Prey Auto-Theft updated from $CURRENT_VERSION to $PACKAGE_VERSION"
- fi
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement