Update install scripts.

This commit is contained in:
Jared Goodwin 2019-06-25 11:59:32 -07:00
parent 13b596af0a
commit 93eb588786
3 changed files with 8 additions and 8 deletions

View File

@ -1 +1 @@
2019.06.23.1054
2019.06.23.1129

View File

@ -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

View File

@ -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