bug fixed
This commit is contained in:
parent
389923c24b
commit
a0f25306a2
2 changed files with 4 additions and 3 deletions
|
|
@ -1 +1,2 @@
|
||||||
pkgs="openssl nginx nginx-common python3-meshtastic python3-flask python3-requests"
|
pkgs_check="openssl nginx meshtastic flask"
|
||||||
|
pkgs_apt="openssl nginx nginx-common python3-meshtastic python3-flask python3-requests"
|
||||||
|
|
@ -19,7 +19,7 @@ fi
|
||||||
|
|
||||||
### DEPENDENCIES
|
### DEPENDENCIES
|
||||||
|
|
||||||
if command -v "$pkgs" >/dev/null 2>&1; then
|
if command -v "$pkgs_check" >/dev/null 2>&1; then
|
||||||
echo -e " ${GRN}Dependency check passed...${CRS}\n"
|
echo -e " ${GRN}Dependency check passed...${CRS}\n"
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
@ -30,7 +30,7 @@ else
|
||||||
read -p " (Y/n) --> " install
|
read -p " (Y/n) --> " install
|
||||||
echo ""
|
echo ""
|
||||||
if [[ "$install" = "" || "$install" = "y" || "$install" = "Y" ]]; then
|
if [[ "$install" = "" || "$install" = "y" || "$install" = "Y" ]]; then
|
||||||
sudo apt update && sudo apt install -y $pkgs
|
sudo apt update && sudo apt install -y $pkgs_apt
|
||||||
echo -e "\n ${GRN}Dependencies installed. Proceeding...${CRS}\n"
|
echo -e "\n ${GRN}Dependencies installed. Proceeding...${CRS}\n"
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue