-
-
Notifications
You must be signed in to change notification settings - Fork 88
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
[fix] Install latest published release from GitHub #407 #412
[fix] Install latest published release from GitHub #407 #412
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work @youhaveme9!
I have tested this and it works as expected. I have left some minor suggestions below. Once, those changes are made we can go ahead and merge this PR.
deploy/auto-install.sh
Outdated
@@ -54,10 +54,18 @@ error_msg_with_continue() { | |||
|
|||
apt_dependenices_setup() { | |||
start_step "Setting up dependencies..." | |||
apt --yes install python3 python3-pip git python3-dev gawk libffi-dev libssl-dev gcc make &>>$LOG_FILE | |||
apt --yes install python3 python3-pip git python3-dev gawk libffi-dev libssl-dev gcc make curl &>>$LOG_FILE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's also include jq
, so we don't into similar errors like curl.
deploy/auto-install.sh
Outdated
echo -ne ${GRN}"OpenWISP Version (leave blank for latest): "${NON} | ||
read openwisp_version | ||
if [[ -z "$openwisp_version" ]]; then | ||
openwisp_version=$(curl -L --silent https://api.github.com/repos/openwisp/docker-openwisp/releases/latest | jq .tag_name | tr -d '"') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
openwisp_version=$(curl -L --silent https://api.github.com/repos/openwisp/docker-openwisp/releases/latest | jq .tag_name | tr -d '"') | |
openwisp_version=$(curl -L --silent https://api.github.com/repos/openwisp/docker-openwisp/releases/latest | jq -r .tag_name) |
Hey @pandafy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
THanks @youhaveme9 @pandafy, I merged the latest master and started the build.
Checklist
Reference to Existing Issue
Closes #407.
Description of Changes
Updated auto-install script to get the latest release from GitHub by default instead of installing the release with "latest" tag.