Compare commits

..

1 Commits

Author SHA1 Message Date
jcrew99
7a7f06b978 Revert "Add support for the SuSE family in the installer (#2590)"
This reverts commit 03f70879f2.
2022-10-07 14:56:40 +10:00
2 changed files with 16 additions and 27 deletions

View File

@@ -45,6 +45,7 @@ GEM
curb (1.0.1)
daemons (1.4.1)
diff-lcs (1.5.0)
digest (3.1.0)
domain_name (0.5.20190701)
unf (>= 0.0.5, < 1.0.0)
em-websocket (0.5.3)
@@ -82,7 +83,7 @@ GEM
concurrent-ruby (~> 1.0)
io-console (0.5.11)
io-like (0.3.1)
irb (1.4.2)
irb (1.4.1)
reline (>= 0.3.0)
json (2.6.2)
matrix (0.4.2)
@@ -100,13 +101,15 @@ GEM
msgpack (~> 1)
msgpack (1.5.4)
multipart-post (2.2.3)
mustermann (3.0.0)
mustermann (2.0.2)
ruby2_keywords (~> 0.0.1)
naught (1.1.0)
net-protocol (0.1.3)
timeout
net-smtp (0.3.2)
net-smtp (0.3.1)
digest
net-protocol
timeout
netrc (0.11.0)
nio4r (2.5.8)
nokogiri (1.13.8-x86_64-linux)
@@ -133,7 +136,7 @@ GEM
rqrcode_core (~> 0.1)
racc (1.6.0)
rack (2.2.4)
rack-protection (3.0.2)
rack-protection (2.2.2)
rack
rack-test (2.0.2)
rack (>= 1.3)
@@ -183,24 +186,24 @@ GEM
rushover (0.3.0)
json
rest-client
selenium-webdriver (4.5.0)
selenium-webdriver (4.4.0)
childprocess (>= 0.5, < 5.0)
rexml (~> 3.2, >= 3.2.5)
rubyzip (>= 1.2.2, < 3.0)
websocket (~> 1.0)
simple_oauth (0.3.1)
sinatra (3.0.2)
mustermann (~> 3.0)
rack (~> 2.2, >= 2.2.4)
rack-protection (= 3.0.2)
sinatra (2.2.2)
mustermann (~> 2.0)
rack (~> 2.2)
rack-protection (= 2.2.2)
tilt (~> 2.0)
slack-notifier (2.4.0)
sqlite3 (1.5.3-x86_64-linux)
sqlite3 (1.5.2-x86_64-linux)
stringio (3.0.2)
sync (0.5.0)
term-ansicolor (1.7.1)
tins (~> 1.0)
test-unit (3.5.5)
test-unit (3.5.3)
power_assert
test-unit-context (0.5.1)
test-unit (>= 2.4.0)

18
install
View File

@@ -6,9 +6,7 @@
#
set -euo pipefail
NORMIFS=$IFS
SCRIFS=$'\n\t'
IFS=$SCRIFS
IFS=$'\n\t'
info() { echo -e "\\033[1;36m[INFO]\\033[0m $*"; }
warn() { echo -e "\\033[1;33m[WARNING]\\033[0m $*"; }
@@ -91,9 +89,7 @@ install_linux() {
Distro='Kali'
elif [ "${DISTRO_ID}" = 'arch' ] || [ "${DISTRO_ID}" = 'artix' ] || [ "${DISTRO_ID}" = 'manjaro' ] || [ "${DISTRO_ID}" = 'blackarch' ] || [ "${DISTRO_ID}" = 'arcolinux' ]; then
Distro='Arch'
elif cat /etc/os-release | grep -Eqi '^ID.*suse'; then
Distro='SuSE'
fi # Usually, I would do this very differently (. /etc/os-release ...), but keeping to the style.
fi
fi
if [ -z "${Distro}" ]; then
@@ -113,16 +109,6 @@ install_linux() {
fi
elif [ "${Distro}" = "RedHat" ]; then
sudo yum install -y git make gcc openssl-devel gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel bzip2 autoconf automake libtool bison sqlite-devel nodejs
elif [ "${Distro}" = "SuSE" ]; then
IFS=$NORMIFS
intpkg=""
nodejsver=nodejs16
rpm --quiet -q nodejs18 && nodejsver="" # having NodeJS 18 installed should mean NodeJS 16 is not needed
for i in git make gcc libopenssl-devel gcc-c++ patch libreadline6 readline6-devel libz1 zlib-devel libyaml-devel libffi-devel bzip2 autoconf automake libtool bison sqlite3-devel $nodejsver; do
rpm --quiet -q $i || intpkg="$intpkg $i"
done
[ "$intpkg" ] && sudo zypper -n install -l $intpkg
IFS=$SCRIFS
elif [ "${Distro}" = "blackPanther" ]; then
installing --auto git make gcc openssl-devel gcc-c++ patch readline-devel zlib-devel yaml-devel libffi-devel bzip2 autoconf automake libtool bison sqlite-devel nodejs sudo
elif [ "${Distro}" = "Arch" ]; then