Update 'Server/update.sh'
This commit is contained in:
@@ -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"/.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/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"/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
|
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
|
#Updating tools
|
||||||
git clone https://git.bprieshof.nl/Tools/ShellHubNative /tmp/SHR
|
git clone https://git.bprieshof.nl/Tools/ShellHubNative /tmp/SHR
|
||||||
if [ "$RelVer" = "stable" ]; then
|
if [ "$RelVer" = "stable" ]; then
|
||||||
@@ -32,6 +23,16 @@ if [ "$RelVer" = "stable" ]; then
|
|||||||
elif [ "$RelVer" = "latest" ] || [ "$RelVer" = "latest_Tested" ]; then
|
elif [ "$RelVer" = "latest" ] || [ "$RelVer" = "latest_Tested" ]; then
|
||||||
mv /tmp/SHR/Server/Tools/latest/* /opt/ShellHub/tools/
|
mv /tmp/SHR/Server/Tools/latest/* /opt/ShellHub/tools/
|
||||||
fi
|
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
|
#Cleanup
|
||||||
rm -rf /tmp/SHR
|
rm -rf /tmp/SHR
|
||||||
|
|||||||
Reference in New Issue
Block a user