Some time ago someone here in the forum published a script that updated Jamulus on linux by pulling the next version from the web, compiled it and installed it. I can not find it anymore. Could someone point me to the script?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is the script I use. You need to give it the release number in the format n_n_n (as per the Github release page). It could be improved of course (eg preventing upgrade if there are people on the server, or getting the latest release without you having to specify that).
#!/bin/bash -e### path to Jamulus ###p=/usr/local/bin/Jamulus
### Check if it does not exist ###if[!-f$p]thenecho"$p DOES NOT exist. Quitting."exit0fi# Remove any previous downloads
rm-rf/tmp/jamulus-r*
echo""echo"Stopping server..."echo""
sudoservicejamulusstop
cd/tmp
wgethttps://github.com/corrados/jamulus/archive/r$1.tar.gz
tar-xvfr$1.tar.gz
cd/tmp/jamulus-r$1
qmake"CONFIG+=nosound"Jamulus.pro
makeclean
make
sudomv$p$p.old
sudomv/tmp/jamulus-r$1/Jamulus$pecho""echo"Starting server..."echo""
sudoservicejamulusstart
rm-rf/tmp/jamulus-r$1*
echo""echo"Jamulus now upgraded."exit0
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Some time ago someone here in the forum published a script that updated Jamulus on linux by pulling the next version from the web, compiled it and installed it. I can not find it anymore. Could someone point me to the script?
Hi Timo,
I never saw the script you mention.
But how about this
Scheduled like this:
Thanks, this was better than the original.
Interestingly, this doesn't work on the Jamulus repo. Not sure why not:
https://api.github.com/repos/corrados/jamulus/releases/latest
This is the script I use. You need to give it the release number in the format n_n_n (as per the Github release page). It could be improved of course (eg preventing upgrade if there are people on the server, or getting the latest release without you having to specify that).