Skip to content

Commit 1df9423

Browse files
committed
Check if lsb_release is installed, adjust install doc ca-cert package.
1 parent 7ca1692 commit 1df9423

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ Download the installation script for the latest release:
4646
```bash
4747
wget https://raw.githubusercontent.com/hestiacp/hestiacp/release/install/hst-install.sh
4848
```
49+
If the download fails due to ssl validation, please be sure you've installed the requirement ca-certificate package - you can do this with the following command:
50+
```bash
51+
apt-get update && apt-get install ca-certificates
52+
```
53+
4954
## Step 3: Run
5055
To begin the installation process, simply run the script and follow the on-screen prompts:
5156
```bash

install/hst-install.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,14 @@ fi
3939
if [ -e "/etc/os-release" ]; then
4040
type=$(grep "^ID=" /etc/os-release | cut -f 2 -d '=')
4141
if [ "$type" = "ubuntu" ]; then
42-
release="$(lsb_release -s -r)"
43-
VERSION='ubuntu'
42+
# Check if lsb_release is installed
43+
if [ -e '/usr/bin/lsb_release' ]; then
44+
release="$(lsb_release -s -r)"
45+
VERSION='ubuntu'
46+
else
47+
echo "lsb_release is currently not installed, please install it:"
48+
echo "apt-get update && apt-get install lsb_release"
49+
fi
4450
elif [ "$type" = "debian" ]; then
4551
release=$(cat /etc/debian_version|grep -o [0-9]|head -n1)
4652
VERSION='debian'

0 commit comments

Comments
 (0)