From 2a4f9d2410074eae0622def4e9a4bbc25ba69d6d Mon Sep 17 00:00:00 2001 From: Jared Goodwin Date: Sat, 13 Apr 2019 08:03:02 -0700 Subject: [PATCH] Rearrange install order. --- Utilities/Remotely_Server_Install.sh | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/Utilities/Remotely_Server_Install.sh b/Utilities/Remotely_Server_Install.sh index ee127024..e5506646 100644 --- a/Utilities/Remotely_Server_Install.sh +++ b/Utilities/Remotely_Server_Install.sh @@ -5,9 +5,17 @@ read -p "Enter app root path (typically /var/www/remotely): " appRoot read -p "Enter server host (e.g. example.com): " serverHost -# Download and install Remotely files. -echo "Downloading Remotely server package" +# Install .NET Core Runtime. +wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb +dpkg -i packages-microsoft-prod.deb +add-apt-repository universe +apt-get install -y apt-transport-https +apt-get update +apt-get install -y aspnetcore-runtime-2.2 +rm packages-microsoft-prod.deb + +# 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 @@ -27,16 +35,6 @@ apt-get -y install libgdiplus setfacl -R -m u:www-data:rwx $appRoot -# Install .NET Core Runtime. -wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb -dpkg -i packages-microsoft-prod.deb -add-apt-repository universe -apt-get install -y apt-transport-https -apt-get update -apt-get install -y aspnetcore-runtime-2.2 -rm packages-microsoft-prod.deb - - # Install Nginx apt-get update apt-get install -y nginx