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

Wrong version with 15.6 repository. Remove ssl_verify=no. #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion common/helpers
Original file line number Diff line number Diff line change
Expand Up @@ -120,5 +120,20 @@ failonme()

distlevel()
{
echo "15.5"
(
if [ -f /etc/os-release ]; then
. /etc/os-release
else
echo "The file /etc/os-release was not found. The distribution cannot be identified."
exit 1
fi
case $ID in
opensuse*|sles)
echo "$VERSION_ID"
;;
grommunio-lds|*)
echo "15.6"
;;
esac
)
}
4 changes: 2 additions & 2 deletions common/repo
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ setup_repo() {
[grommunio]
enabled=1
autorefresh=1
baseurl=https://${REPO_USER}:${REPO_PASS}@download.grommunio.com/${REPO_PATH}/openSUSE_Leap_$(distlevel)/?ssl_verify=no
baseurl=https://${REPO_USER}:${REPO_PASS}@download.grommunio.com/${REPO_PATH}/openSUSE_Leap_$(distlevel)
type=rpm-md
EOF
else
Expand All @@ -35,7 +35,7 @@ EOF
[grommunio]
enabled=1
autorefresh=1
baseurl=https://download.grommunio.com/${REPO_PATH}/openSUSE_Leap_$(distlevel)/?ssl_verify=no
baseurl=https://download.grommunio.com/${REPO_PATH}/openSUSE_Leap_$(distlevel)
type=rpm-md
EOF
fi
Expand Down