mirror of
https://github.com/vmstan/gravity-sync.git
synced 2024-08-30 18:22:11 +00:00
hashycorp
This commit is contained in:
parent
b52423cba7
commit
d7817aa3e4
@ -843,7 +843,7 @@ function detect_sshkeygen {
|
|||||||
MESSAGE="Attempting to Compensate"
|
MESSAGE="Attempting to Compensate"
|
||||||
echo_info
|
echo_info
|
||||||
|
|
||||||
if is_command dropbearkey
|
if hash dropbearkey 2>/dev/null
|
||||||
then
|
then
|
||||||
MESSAGE="Using DROPBEARKEY Instead"
|
MESSAGE="Using DROPBEARKEY Instead"
|
||||||
echo_info
|
echo_info
|
||||||
@ -868,16 +868,16 @@ function detect_sshkeygen {
|
|||||||
|
|
||||||
## Detect Package Manager
|
## Detect Package Manager
|
||||||
function distro_check {
|
function distro_check {
|
||||||
if is_command apt-get
|
if hash apt-get 2>/dev/null
|
||||||
then
|
then
|
||||||
PKG_MANAGER="apt-get"
|
PKG_MANAGER="apt-get"
|
||||||
PKG_INSTALL="${PKG_MANAGER} --yes --no-install-recommends install"
|
PKG_INSTALL="${PKG_MANAGER} --yes --no-install-recommends install"
|
||||||
elif is_command rpm
|
elif hash rpm 2>/dev/null
|
||||||
then
|
then
|
||||||
if is_command dnf
|
if hash dnf 2>/dev/null
|
||||||
then
|
then
|
||||||
PKG_MANAGER="dnf"
|
PKG_MANAGER="dnf"
|
||||||
elif is_command yum
|
elif hash yum 2>/dev/null
|
||||||
then
|
then
|
||||||
PKG_MANAGER="yum"
|
PKG_MANAGER="yum"
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user