Skip to content

Commit

Permalink
Only install libnet-websocket-server-perl if apt knows about it
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaac Connor committed Nov 17, 2024
1 parent b4496fc commit 7fd34d2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,13 @@ install_es() {
if [[ "$DISTRO" == "ubuntu" || "$DISTRO" == "debian" ]]; then
echo "$INSTALLER install libconfig-inifiles-perl libcrypt-mysql-perl libcrypt-eksblowfish-perl libmodule-build-perl libyaml-perl libjson-per liblwp-protocol-https-perl libgeos-devl"
$INSTALLER install libconfig-inifiles-perl libcrypt-mysql-perl libcrypt-eksblowfish-perl libmodule-build-perl libyaml-perl
echo "$INSTALLER install libnet-websocket-server-perl"
$INSTALLER install libnet-websocket-server-perl
HAVE_PACKAGE=`apt-cache madison libnet-websocket-server-perl`
if [[ "$HAVE_PACKAGE" == "" ]]; then
echo "You will have to install Net::WebSocket::Server using cpan."
else
echo "$INSTALLER install libnet-websocket-server-perl"
$INSTALLER install libnet-websocket-server-perl
fi
else
echo "Not ubuntu or debian"
fi
Expand Down

0 comments on commit 7fd34d2

Please sign in to comment.