Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow web install over prior version #972

Merged
merged 4 commits into from
Jan 27, 2022

Conversation

EricClaeys
Copy link
Collaborator

This PR lets users install updates to the Allsky website via ~/allsky/website/install.sh. It saves their timelapse, keograms, startrails, and configuration files, then restores them after the update.

Take into account that the user may already have the Allsky Website installed, so save it, then install the new version, and restore saved videos, keograms, and startrails as well as any associated thumbnails.  Also restore configuration files.
If the user is installing Allsky Website for the first time, set some configuration variables based on the Allsky configuration.

The code dealing with configuration files was moved to a function "modify_configuration_variables" in case we want to call it on "--update".
Add an error check.  Make error messages more consistent.
Improve message after completion and include Wiki URL for new website users.
Remove "set -x" left over from my testing.
@AndreasLMeg
Copy link
Collaborator

@EricClaeys: I'm sorry but I can't review/test this. I haven't done anything with this part yet

functions.php needs to know if it's on a Pi so it can check the "XX_ALLSKY_CONFIG_XX" placeholder and if not updated, warn the user.
On remote servers we should NOT check the placeholder.  The "XX_ON_PI_XX" placeholder is set "true" during installation on a Pi which tells functions.php it's running on a Pi.

There is no longer a need to replace only the 1st instance of XX_ALLSKY_CONFIG_XX since there is now only one instance.
@linuxkidd linuxkidd merged commit 5777f7e into master Jan 27, 2022
@EricClaeys EricClaeys deleted the Allow-web-install-over-prior-version branch February 10, 2022 03:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants