Ergo deployment OS and existing installation check.
Signed-off-by: Georg Pfuetzenreuter <georg@lysergic.dev>
This commit is contained in:
parent
9ad1234cc4
commit
1d9db91b3b
@ -1,4 +1,11 @@
|
||||
#!/bin/sh
|
||||
DISTRIB=$(awk -F= '/^NAME/{print $2}' /etc/os-release)
|
||||
echo "Detected $DISTRIB"
|
||||
if [[ ${DISTRIB} = "openSUSE Leap" ]]
|
||||
echo
|
||||
then
|
||||
if [ ! /opt/ergo ]
|
||||
then
|
||||
GOVER=`go version | { read _ _ v _; echo ${v#go}; }`
|
||||
echo "Detected Go $GOVER"
|
||||
GOVER_REQ="1.16.0"
|
||||
@ -53,3 +60,9 @@ fi
|
||||
else
|
||||
echo "This is currently only compatible with Go 1.16.6 or higher. Consider deploy_go.sh."
|
||||
fi
|
||||
else
|
||||
echo "Existing Ergo installation or leftovers detected. Consider remove_ergo.sh."
|
||||
fi
|
||||
else
|
||||
echo "This is currently only compatible with SUSE Leap nodes."
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user