You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
! These scripts are for use at your own risk and have not been reviewed or endorsed by @mikebrady in any way !
As i'd like to keep up to date with the branches of Shairport-Sync, I decided to author an update script that can be run manually or put into a cron job.
Features:
Checks current git branch and only updates if you are behind commits
Logs to a path you specify in case you'd like to see whats happened
Automatically checks NQPTP for updates if you select the Development branch
Theres no reboot step so you can call it as part of a larger script (as I do) - just add one if you wish to run it as stand alone
Instructions:
Rename from .txt to .sh and FTP it to your box of choice
Before running, open up the script and specify your Shairport-Sync, Log and NQPTP folders as necessary
Comment out as appropriate the branch you intend to pull
Remove or comment out the 'Git Status' section to remove version checking if you wish to force a re-install.
This is my first foray into Linux-based scripting so it's probably a little clumsy - I'm fairly sure you could implement switches, for example, instead of commenting out sections you want - but either way, once you set it up it should be set and forget; and you can check the logs it creates if something stops working!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
! These scripts are for use at your own risk and have not been reviewed or endorsed by @mikebrady in any way !
As i'd like to keep up to date with the branches of Shairport-Sync, I decided to author an update script that can be run manually or put into a cron job.
Features:
Instructions:
This is my first foray into Linux-based scripting so it's probably a little clumsy - I'm fairly sure you could implement switches, for example, instead of commenting out sections you want - but either way, once you set it up it should be set and forget; and you can check the logs it creates if something stops working!
As ever, feedback is very welcome.
Update-ShairportSync.txt
Beta Was this translation helpful? Give feedback.
All reactions