From 1135a2d736d77440de3b5e796bd85b267664c17d Mon Sep 17 00:00:00 2001 From: malacupa Date: Wed, 8 May 2019 12:22:27 -0400 Subject: [PATCH 1/2] fix libicu57 URL --- setup/install.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/setup/install.sh b/setup/install.sh index 3df21f256..7ed36c26c 100755 --- a/setup/install.sh +++ b/setup/install.sh @@ -59,8 +59,14 @@ function install_powershell() { sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-debian-stretch-prod stretch main" > /etc/apt/sources.list.d/microsoft.list' # Update the list of products apt-get update - wget http://archive.ubuntu.com/ubuntu/pool/main/i/icu/libicu57_57.1-6_amd64.deb - dpkg -i libicu57_57.1-6_amd64.deb + # Install libucu57 as stated in https://web.archive.org/web/20190501222044/https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-linux?view=powershell-6#installation---kali + wget http://http.us.debian.org/debian/pool/main/i/icu/libicu57_57.1-6+deb9u2_amd64.deb + if sha256sum libicu57_57.1-6+deb9u2_amd64.deb | grep '^c2dee82e7ae8fa4dc8fd0d9ad5a28cd41598cfccf5d0a71d0cd6a6bb4ac71f25' >/dev/null; then + dpkg -i libicu57_57.1-6+deb9u2_amd64.deb + else + echo "Failed to install libicu57" + exit 1 + fi # Install PowerShell apt-get install -y powershell fi From 835c6d27bf092ec04f485930f157801d7e1e98e1 Mon Sep 17 00:00:00 2001 From: malacupa <44790129+malacupa@users.noreply.github.com> Date: Tue, 21 May 2019 14:24:49 -0400 Subject: [PATCH 2/2] Update install.sh fixes missing sudo --- setup/install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup/install.sh b/setup/install.sh index 7ed36c26c..73d99515c 100755 --- a/setup/install.sh +++ b/setup/install.sh @@ -155,11 +155,11 @@ tar -xvf ../data/misc/$Xar_version.tar.gz #Installing bomutils git clone https://github.com/hogliux/bomutils.git (cd bomutils && make) -(cd bomutils && make install) +(cd bomutils && sudo make install) # NIT: This fails on OSX. Leaving it only on Linux instances. if uname | grep -q "Linux"; then - (cd bomutils && make install) + (cd bomutils && sudo make install) fi chmod 755 bomutils/build/bin/mkbom && sudo cp bomutils/build/bin/mkbom /usr/local/bin/.