Fixed dependencies installation

master
Illia Chub 2020-09-04 17:04:27 +03:00
parent 1a5f10580e
commit 04beee6b0b
1 changed files with 2 additions and 2 deletions

View File

@ -4,9 +4,9 @@
InstallDependencies()
{
packagesNeeded='curl jq expect pwgen'
packagesNeeded='curl jq mkpasswd pwgen'
if [ -x "$(command -v apk)" ]; then sudo apk add --no-cache $packagesNeeded # Alpine Linux
elif [ -x "$(command -v apt-get)" ]; then sudo apt-get install $packagesNeeded # Debian/Ubuntu Linux
elif [ -x "$(command -v apt-get)" ]; then sudo apt-get install curl jq whois pwgen # Debian/Ubuntu Linux
elif [ -x "$(command -v dnf)" ]; then sudo dnf install $packagesNeeded # Fedora Linux
elif [ -x "$(command -v rpm-ostree)" ]; then sudo rpm-ostree install $packagesNeeded # Fedora Linux Silverblue
elif [ -x "$(command -v zypper)" ]; then sudo zypper install $packagesNeeded # openSUSE Linux