From b361959f537b1a0d33cf80f961ed0269c1a3fbd6 Mon Sep 17 00:00:00 2001 From: ig Date: Fri, 7 Jul 2023 09:38:29 +0200 Subject: [PATCH] Properly parametrize deploy script --- csharp/App/Backend/DataTypes/Installation.cs | 1 - csharp/App/OpenVpnCertificatesServer/Program.cs | 2 -- csharp/App/SaliMax/run (Salimax0003).sh | 6 +++--- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/csharp/App/Backend/DataTypes/Installation.cs b/csharp/App/Backend/DataTypes/Installation.cs index f4620d56b..62db53970 100644 --- a/csharp/App/Backend/DataTypes/Installation.cs +++ b/csharp/App/Backend/DataTypes/Installation.cs @@ -2,7 +2,6 @@ using SQLite; namespace InnovEnergy.App.Backend.DataTypes; - public class Installation : TreeNode { public String Location { get; set; } = ""; diff --git a/csharp/App/OpenVpnCertificatesServer/Program.cs b/csharp/App/OpenVpnCertificatesServer/Program.cs index 581699d5f..6189489b3 100644 --- a/csharp/App/OpenVpnCertificatesServer/Program.cs +++ b/csharp/App/OpenVpnCertificatesServer/Program.cs @@ -153,8 +153,6 @@ public static class Program var installations = await vrm.GetInstallations(); - - var installationName = installations .Where(i => i.UniqueId == uniqueId) .Select(i => i.Name) diff --git a/csharp/App/SaliMax/run (Salimax0003).sh b/csharp/App/SaliMax/run (Salimax0003).sh index ba6f5b68c..a47112ee4 100644 --- a/csharp/App/SaliMax/run (Salimax0003).sh +++ b/csharp/App/SaliMax/run (Salimax0003).sh @@ -18,17 +18,17 @@ echo -e "\n============================ Deploy ============================\n" rsync -v \ ./bin/Release/$dotnet_version/linux-x64/publish/* \ - ie-entwicklung@10.2.4.33:~/salimax + $username@$salimax_ip:~/salimax echo -e "\n============================ Restart Salimax sevice ============================\n" ssh -tt \ - ie-entwicklung@10.2.4.33 \ + $username@$salimax_ip \ sudo systemctl restart salimax.service echo -e "\n============================ Print service output ============================\n" ssh -tt \ - ie-entwicklung@10.2.4.33 \ + $username@$salimax_ip \ journalctl -f -u salimax.service \ No newline at end of file