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

do not always download bootstrap, delete old bootstrap #32

Open
Grotax opened this issue Mar 26, 2024 · 0 comments
Open

do not always download bootstrap, delete old bootstrap #32

Grotax opened this issue Mar 26, 2024 · 0 comments

Comments

@Grotax
Copy link
Member

Grotax commented Mar 26, 2024

Currently bootstrap is always downloaded regardless of the current installed version.

The current code downloads bootstrap and stores it as bootstrap-$version-dist in /var/www/gw-status

Meaning if the same version exists it's overwritten by ansible.

If there is an older version, it's not deleted.

brunsbach ➜  gw-status ls
bootstrap-5.3.1-dist  bootstrap-5.3.2-dist  bootstrap-5.3.3-dist  cover.css  index.html

Option 1: instead of having versioned dir move content to simple bootstrap-dist dir
-> download still happening

Option 2: check version, only download if the current version is older, there might be multiple dirs if cleanup was not done; do cleanup after install

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

No branches or pull requests

1 participant