diff --git a/Server/update.sh b/Server/update.sh index fccceb0..cf97bb7 100644 --- a/Server/update.sh +++ b/Server/update.sh @@ -15,16 +15,7 @@ wget https://git.bprieshof.nl/ci/Releases/ShellHub/"$RelVer"/nginx.env -O /opt/S wget https://git.bprieshof.nl/ci/Releases/ShellHub/"$RelVer"/.env -O /opt/ShellHub/shellhub.env wget https://git.bprieshof.nl/ci/Releases/ShellHub/"$RelVer"/BinServices/ShellHubSSH-amd64 -O /opt/ShellHub/ShellHubSSH wget https://git.bprieshof.nl/ci/Releases/ShellHub/"$RelVer"/BinServices/ShellHubAPI-amd64 -O /opt/ShellHub/ShellHubAPI -wget https://git.bprieshof.nl/ci/Releases/ShellHub/"$RelVer"/BinAgent/ShellHubAgent-amd64 -O /opt/ShellHub/ui/agent-amd64 wget https://git.bprieshof.nl/ci/Releases/ShellHub/"$RelVer"/build.ID -O /opt/ShellHub/build.ID -#Updating Webui -wget https://git.bprieshof.nl/ci/Releases/ShellHub/"$RelVer"/BinServices/webui.tar.gz -O /tmp/SHR/webui.tar.gz -tar -zxf /tmp/SHR/webui.tar.gz -C /opt/ShellHub/ui -mv /tmp/SHR/Agent/Kickstart_template /opt/ShellHub/ui/kickstart.sh -#Setting Permissions -chmod +x /opt/ShellHub/ShellHubAPI -chmod +x /opt/ShellHub/ShellHubSSH - #Updating tools git clone https://git.bprieshof.nl/Tools/ShellHubNative /tmp/SHR if [ "$RelVer" = "stable" ]; then @@ -32,6 +23,16 @@ if [ "$RelVer" = "stable" ]; then elif [ "$RelVer" = "latest" ] || [ "$RelVer" = "latest_Tested" ]; then mv /tmp/SHR/Server/Tools/latest/* /opt/ShellHub/tools/ fi +#Updating Webui +wget https://git.bprieshof.nl/ci/Releases/ShellHub/"$RelVer"/BinServices/webui.tar.gz -O /tmp/SHR/webui.tar.gz +tar -zxf /tmp/SHR/webui.tar.gz -C /opt/ShellHub/ui +wget https://git.bprieshof.nl/ci/Releases/ShellHub/"$RelVer"/BinAgent/ShellHubAgent-amd64 -O /opt/ShellHub/ui/agent-amd64 + +mv /tmp/SHR/Agent/Kickstart_template /opt/ShellHub/ui/kickstart.sh +#Setting Permissions +chmod +x /opt/ShellHub/ShellHubAPI +chmod +x /opt/ShellHub/ShellHubSSH + #Cleanup rm -rf /tmp/SHR