From e68d5ed5ea7c46e50517ed2b5f783226265ffecb Mon Sep 17 00:00:00 2001 From: moloch-- <875022+moloch--@users.noreply.github.com> Date: Sun, 4 Jun 2023 09:46:52 -0700 Subject: [PATCH] Update install script for v1.6.x --- docs/install | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/docs/install b/docs/install index 4e9e2ed425..6013c7a8e1 100644 --- a/docs/install +++ b/docs/install @@ -100,8 +100,14 @@ EOF # Download and Unpack Sliver Server # ARTIFACTS=$(curl -s "https://api.github.com/repos/BishopFox/sliver/releases/latest" | awk -F '"' '/browser_download_url/{print $4}') -SLIVER_SERVER='sliver-server_linux' -SLIVER_CLIENT='sliver-client_linux' +arch=$(uname -i) +if [[ $arch == x86_64* ]]; then + SLIVER_SERVER='sliver-server_linux-amd64' + SLIVER_CLIENT='sliver-client_linux-amd64' +elif [[ $arch == arm* ]]; then + SLIVER_SERVER='sliver-server_linux-arm64' + SLIVER_CLIENT='sliver-client_linux-arm64' +fi for URL in $ARTIFACTS @@ -159,8 +165,11 @@ chown root:root /etc/systemd/system/sliver.service chmod 600 /etc/systemd/system/sliver.service systemctl start sliver +# Enable on boot +systemctl enable sliver + # Generate local configs -echo "Generating operator configs ..." +echo "Generating local user operator configs ..." mkdir -p /root/.sliver-client/configs /root/sliver-server operator --name root --lhost localhost --save /root/.sliver-client/configs chown -R root:root /root/.sliver-client/