Added update checks.

This commit is contained in:
Markus Birth 2015-07-06 12:19:16 +02:00
parent 908275a0e1
commit 9d9d7ee986
2 changed files with 56 additions and 0 deletions

29
check_revo_updates.sh Executable file
View File

@ -0,0 +1,29 @@
#!/bin/sh
echo -n "dump1090: "
cd /opt/flightradar24/dump1090.git
git pull
cd - >/dev/null
echo -n "newznab: "
cd /opt/newznab
svn up
cd - >/dev/null
echo -n "spotweb: "
cd /opt/spotweb
git pull
cd - >/dev/null
#echo -n "Plex: "
#PLEX_INST=`apt-cache policy plexmediaserver | grep "Installed" | cut -d" " -f4`
#PLEX_LIVE=`wget -q -O - --header='Cookie: remember_user_token=BAhbB1sGaQNpZTFJIhkzOHFLRHE5d3Z1VFJaSlpwR2JhdAY6BkVG--c367af27eec0fdc46ada94a77af6d06059f204cb' "https://plex.tv/downloads?channel=plexpass" | grep -o "plexmediaserver_.*_amd64.deb" | sed 's/plexmediaserver_\(.*\)_amd64.deb$/\1/'`
#if [ "$PLEX_INST" != "$PLEX_LIVE" ]; then
# echo "new version: $PLEX_LIVE (currently installed: $PLEX_INST)"
#else
# echo "up-to-date ($PLEX_INST)."
#fi
echo -n "Dash: "
cd /mnt/storage/WWW/.admin/dash
git pull
cd - >/dev/null
echo -n "Tiny-Tiny-RSS: "
cd /opt/ttRSS
git pull
cd - >/dev/null

27
check_updates.sh Executable file
View File

@ -0,0 +1,27 @@
#!/bin/sh
echo "fish-shell"
cd ~/Desktop/fish-shell
git pull
echo "RETURN VALUE: $? (make clean; autoconf; ./configure --prefix=/usr --sysconfdir=/etc; make)"
cd -
#echo "gTimelog"
#cd ~/Desktop/Insync/Apps/gtimelog
#bzr up
#echo "RETURN VALUE: $?"
#cd -
#echo "Tiny Tiny RSS"
#cd ~/Desktop/Insync/Development/PHP/Tiny-Tiny-RSS
#git pu
#echo "RETURN VAULE: $?"
#cd -
echo "powerline"
cd ~/Desktop/Insync/Apps/powerline
git pull
echo "RETURN VAULE: $?"
cd -
~/Desktop/Insync/Public/apt-repos/apt-urlcheck.php
#wget -q -O - "http://www.sublimetext.com/dev" | grep "The current Sublime Text 2"
#wget -q -O - "http://www.sublimetext.com/nightly" | grep "The current Sublime Text 2"
wget -q -O - "http://www.sublimetext.com/3" | grep "The latest build is"
wget -q -O - "http://www.sublimetext.com/3dev" | grep "The current Sublime Text 3"
sudo aptitude update -q