mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
Update install scripts.
This commit is contained in:
parent
13b596af0a
commit
93eb588786
@ -1 +1 @@
|
||||
2019.06.23.1054
|
||||
2019.06.23.1129
|
||||
|
||||
@ -264,15 +264,15 @@ while ($Success -eq $false) {
|
||||
|
||||
### Download Server Package ###
|
||||
try {
|
||||
if ((Test-Path -Path "$env:TEMP\Remotely_Server.zip")){
|
||||
Remove-Item -Path "$env:TEMP\Remotely_Server.zip" -Force
|
||||
if ((Test-Path -Path "$env:TEMP\Server.zip")){
|
||||
Remove-Item -Path "$env:TEMP\Server.zip" -Force
|
||||
}
|
||||
Wrap-Host "Downloading server package..."
|
||||
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
|
||||
Invoke-WebRequest -Uri "https://remotely.lucency.co/Downloads/win-x64/Remotely_Server.zip" -OutFile "$env:TEMP\Remotely_Server.zip"
|
||||
Invoke-WebRequest -Uri "https://remotely.lucency.co/Downloads/win-x64/Server.zip" -OutFile "$env:TEMP\Server.zip"
|
||||
Wrap-Host "Extracting server files..."
|
||||
[System.Reflection.Assembly]::LoadWithPartialName("System.IO.Compression.FileSystem") | Out-Null
|
||||
[System.IO.Compression.ZipFile]::ExtractToDirectory("$env:TEMP\Remotely_Server.zip", $InstallPath)
|
||||
[System.IO.Compression.ZipFile]::ExtractToDirectory("$env:TEMP\Server.zip", $InstallPath)
|
||||
}
|
||||
catch {
|
||||
Wrap-Host
|
||||
|
||||
@ -26,9 +26,9 @@ apt-get -y install libgdiplus
|
||||
|
||||
# Download and install Remotely files.
|
||||
mkdir -p $appRoot
|
||||
wget "https://remotely.lucency.co/Downloads/linux-x64/Remotely_Server.zip"
|
||||
unzip -o Remotely_Server.zip -d $appRoot
|
||||
rm Remotely_Server.zip
|
||||
wget "https://remotely.lucency.co/Downloads/linux-x64/Server.zip"
|
||||
unzip -o Server.zip -d $appRoot
|
||||
rm Server.zip
|
||||
setfacl -R -m u:www-data:rwx $appRoot
|
||||
chown -R www-data:www-data $appRoot
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user