From 567c3e1cc5536caa153ec147a6dd1cf9671ad620 Mon Sep 17 00:00:00 2001 From: Jared Goodwin Date: Thu, 12 Dec 2019 14:49:41 -0800 Subject: [PATCH] Fix foreign key issue. Add systemctl param. --- Server/Services/BrowserSocketHub.cs | 2 +- Server/wwwroot/Downloads/Install-Linux-x64.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Server/Services/BrowserSocketHub.cs b/Server/Services/BrowserSocketHub.cs index 6c7a6a02..ee9b53a0 100644 --- a/Server/Services/BrowserSocketHub.cs +++ b/Server/Services/BrowserSocketHub.cs @@ -82,7 +82,7 @@ namespace Remotely.Server.Services SenderConnectionID = Context.ConnectionId, SenderUserID = Context.UserIdentifier, TargetDeviceIDs = connections.Select(x => x.Value.ID).ToArray(), - OrganizationID = RemotelyUser.Organization.ID + OrganizationID = RemotelyUser.OrganizationID }; DataService.AddOrUpdateCommandContext(commandContext); await Clients.Caller.SendAsync("CommandContextCreated", commandContext); diff --git a/Server/wwwroot/Downloads/Install-Linux-x64.sh b/Server/wwwroot/Downloads/Install-Linux-x64.sh index bde78043..3e979390 100644 --- a/Server/wwwroot/Downloads/Install-Linux-x64.sh +++ b/Server/wwwroot/Downloads/Install-Linux-x64.sh @@ -53,6 +53,7 @@ Description=The Remotely agent used for remote access. WorkingDirectory=/usr/local/bin/Remotely/ ExecStart=/usr/local/bin/Remotely/Remotely_Agent Restart=always +StartLimitIntervalSec=0 RestartSec=10" [Install]