Skip to content

Shell scripts for automatically updating projecthorus/radiosonde_auto_rx docker images

License

Notifications You must be signed in to change notification settings

Moll1989/auto_rx_auto_update

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 

Repository files navigation

auto_rx_auto_update

This project is a set of shell scripts for automatically updating projecthorus/radiosonde_auto_rx docker images. These scripts should only be used on Docker based installs of auto_rx and SHOULD NOT be used on 'native' installs of auto_rx.

This script is targeted at the Raspberry Pi, running Raspbian Lite. It may not operate correctly on other platforms.

When installing auto_update, there are 3 files created:

  • ~/auto_rx_auto_update/run_docker.sh - This script has all of the arguments that should be passed to docker when launching auto_rx. This should be customised by the user.
  • ~/auto_rx_auto_update/update_auto_rx.sh - This is the script which checks whether your docker container is up to date with the latest version, and if not launches run_docker.sh
  • /etc/cron.d/updateautorx - This cron file launches the update_auto_rx.sh script daily.

Installation Instructions

Installation of the auto_updater is easy. There is a single convenient install script which can be downloaded from this project.

Simply download the script, make it executable and then run it with root permission:

cd ~/
wget https://raw.githubusercontent.com/Moll1989/auto_rx_auto_update/main/install_auto_rx_update.sh
chmod 755 install_auto_rx_update.sh
sudo ./install_auto_rx_update.sh

The install script will now create the other required script files.

During the installation an instance of the nano editor will open to remind you to configure your run_docker.sh script. Once you have made any required changes to the run_docker.sh script, simply press CTRL+O then CTRL+X.

By default a daily cron job will be inserted to run updates at 18:00 UTC.

At the conclusion of the script an update will be run.

If you are setting up a fresh install of project_horus/radiosonde_auto_rx you can run the above codeblock in place of the first time you launch docker.

Uninstall Instructions

auto_updater is easy to uninstall. Simply run the install script with the 'uninstall' argument. Make sure you elevate the user, otherwise you may not be able to remove the cron.d file.

sudo ./install_auto_rx_update.sh uninstall

This will remove all auto_rx_auto_update files, including logs, except for the install script. The install script can be removed with:

rm install_auto_rx_update.sh

Removing the auto_updater will not impact your instance of auto_rx.

About

Shell scripts for automatically updating projecthorus/radiosonde_auto_rx docker images

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages