Skip to content

Commit

Permalink
return options or exit, add install packages
Browse files Browse the repository at this point in the history
  • Loading branch information
maaikelimper committed Jan 21, 2025
1 parent 0138ab3 commit 8c26dfe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/user/getting-started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ The following commands be used to setup the required software on Ubuntu (20.04 L
sudo apt-get install -y docker-ce docker-compose-plugin unzip python3-pip
sudo pip3 install pip --upgrade
sudo pip3 install pyopenssl --upgrade
sudo pip3 install requests==2.26.0 urllib3==1.26.0
sudo pip3 install requests==2.26.0 urllib3==1.26.0 packages
For Ubuntu 24.04 LTS, you will need to use a virtual environment to install the required Python packages:

Expand Down
8 changes: 8 additions & 0 deletions wis2box-ctl.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,17 @@ def get_resolved_version() -> None:
except requests.exceptions.RequestException as e:
print(f'Error fetching latest release tag for {base_version}: {e}')

if options:
options.sort(key=lambda v: Version(v), reverse=True)
return options[0]
else:
print(f'No matching versions found for wis2box.version={base_version}')
exit(1)

return None



def remove_old_docker_images() -> None:
"""
Remove any image in docker-compose.images-*.yml.bak
Expand Down

0 comments on commit 8c26dfe

Please sign in to comment.