[Tutorial] Auto Update
Posted: Tue Mar 26, 2013 3:04 am
So hakko updates too fast. So I made a little auto update script and threw it in a daily cron job and decided to share. If hakko has an easy way to grab the current/latest version and compare them then I can modify the script
PS: I use *.war/*.jar because in the only two updates I have grabbed so far the names have been different.
- Code: Select all
wget http://dilerium.se/musiccabinet/subsonic-installer-standalone.zip -O /tmp/subsonic-installer-standalone.zip
unzip /tmp/subsonic-installer-standalone.zip -d /tmp/
service musiccabinet stop
mv /tmp/subsonic-installer-standalone/subsonic*.war /usr/share/musiccabinet/subsonic-main.war
mv /tmp/subsonic-installer-standalone/subsonic*.jar /usr/share/musiccabinet/subsonic-booter.jar
rm -R /tmp/subsonic-installer-standalone /tmp/subsonic-installer-standalone.zip
service musiccabinet start
PS: I use *.war/*.jar because in the only two updates I have grabbed so far the names have been different.