-
Notifications
You must be signed in to change notification settings - Fork 55
Updating indi allsky
indi-allsky upgrades are rolling releases. You should be able to upgrade to the latest release of indi-allsky from any previous release.
Note: Upgrading INDI is not necessary when upgrading indi-allsky
indi-allsky now has an unattended upgrade option that can perform a code upgrade with no interaction from the user.
Navigate to System -> Utilities [tab] and select Upgrade indi-allsky. The upgrade may require up to 5 minutes to complete. During the upgrade, the indi-allsky capture process will be shutdown and restarted (if it was running) once the upgrade is complete. A notification will be shown in the web interface once the upgrade has completed.
The unattended upgrade runs as an out-of-band systemd service unit which allows it to function outside the indi-allsky system processes.
- Notes
- The unattended upgrade will only function when a non-authenticated GitHub checkout has been used (
https://). - The upgrade will only proceed if you are on the
mainbranch. - Any code modifications prevent the unattended upgrade from running.
- The unattended upgrade will only function when a non-authenticated GitHub checkout has been used (
You may run the unattended upgrade manually if the GitHub checkout requires an SSH key for authentication or you just want to monitor the process.
./misc/unattended_upgrade.sh
-
Navigate to the current git clone
cd indi-allsky -
Stop indi-allsky & gunicorn
systemctl --user stop indi-allsky -
Pull the latest changes via git
git pull origin main -
Re-run setup.sh to configure system. This step is not always required, the indi-allsky service will usually indicate when it is necessary.
./setup.sh-
If you get a message about repositories not being valid, you may have to re-enable NTP time sync
sudo timedatectl set-ntp true
-
-
Restart indi-allsky
systemctl --user start indi-allsky
Note: This does not upgrade Python modules. If you have problems with modules, recommend using the setup.sh script.
-
Navigate to the current git clone
cd indi-allsky -
Stop indi-allsky & gunicorn
systemctl --user stop indi-allsky systemctl --user stop gunicorn-indi-allsky -
Pull the latest changes via git
git pull origin main -
Upgrade the database schema
flask db revision --autogenerate flask db upgrade head -
Increment the config version level
./config.py edit (save the config with no changes) -
Restart indi-allsky
systemctl --user start indi-allsky
-
Navigate to the current git clone
cd indi-allsky -
Pull the latest changes via git
git pull origin main -
Re-run web_only_setup.sh to configure system
./misc/web_only_setup.sh
https://github.com/aaronwmorris/indi-allsky/wiki/Docker#updating-indi-allsky
The master branch was renamed to main on Feb 17, 2023. The following commands may be used to rename the branch on your local clone.
git branch -m master main
git fetch origin
git branch -u origin/main main
git remote set-head origin -a