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

Improve the unattended installation scripts progress bars #865

Closed
Tracked by #834 ...
davidfmiranda opened this issue Feb 4, 2021 · 7 comments
Closed
Tracked by #834 ...

Improve the unattended installation scripts progress bars #865

davidfmiranda opened this issue Feb 4, 2021 · 7 comments
Assignees

Comments

@davidfmiranda
Copy link
Contributor

Version Documents affected
4.1 unattended-installation.sh

The unattended installation scripts may lead to confusion when installing since some steps may take a lot of time.

The scripts should show more dynamic and graphical progress bars to clarify to the users that the script is still running.

Regards,

David

@alberpilot alberpilot transferred this issue from wazuh/wazuh-documentation Sep 9, 2021
@verdx
Copy link
Contributor

verdx commented Oct 21, 2021

Version Documents affected
4.1 unattended-installation.sh

The unattended installation scripts may lead to confusion when installing since some steps may take a lot of time.

The scripts should show more dynamic and graphical progress bars to clarify to the users that the script is still running.

Regards,

David

Unfortunately, the times the script is stopped for some time, it is because something is being downloaded or installed, and it is not possible to track the progress of it from the script. A dynamic progress bar is not possible because of this, but a solution may be to display a moving spinner or symbol that at least shows the shell isn't frozen. I'm looking at the moment into ways of implementing it.

@verdx
Copy link
Contributor

verdx commented Nov 8, 2021

I'm having some problems with erasing the screen to write again with tput. The goal is to make a progress bar that stays in the last line as the rest of the output is written above it using a buffer.

@verdx
Copy link
Contributor

verdx commented Nov 9, 2021

Today I managed to get the progress bars working correctly. I'm going to solve issue #984, as it will make it a lot easier to implement the progress bars.

@verdx
Copy link
Contributor

verdx commented Nov 12, 2021

I added the progressBar to all installers, but I run into a problem. When calling to wazuh-cert-tool and wazuh-passwords-tool the progress bar is compromised, as they have their own unbuffered outputs, I must find a way to put their outputs into the buffer.

@alberpilot
Copy link
Contributor

Merged into unified branch

@alberpilot
Copy link
Contributor

We decided to cancel the progress bar and replace it with a spinner.
In addition to this, we want to catch any user control - c during the installer execution and ask the user if it's really necessary to stop the installer.

@verdx
Copy link
Contributor

verdx commented Dec 29, 2021

Closed with #1113

@verdx verdx closed this as completed Dec 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants