Fix building on linux

This commit is contained in:
SilicaAndPina 2022-04-15 23:39:54 +12:00
parent 70359f967a
commit 59392db9bb

View file

@ -1,4 +1,5 @@
using HISP.Server; using HISP.Cli.Properties;
using HISP.Server;
using System; using System;
using System.IO; using System.IO;
using System.Threading; using System.Threading;
@ -74,7 +75,7 @@ namespace HISP.Cli
{ {
case "--install-service": case "--install-service":
#if OS_LINUX #if OS_LINUX
File.WriteAllText("/etc/systemd/system/HISP.service", Properties.Resources.HISPService); File.WriteAllBytes("/etc/systemd/system/HISP.service", Resources.HISPService);
LogStdout(false, "INFO", "Crreated Service! enable it with \"sudo systemctl enable HISP\""); LogStdout(false, "INFO", "Crreated Service! enable it with \"sudo systemctl enable HISP\"");
#else #else
LogStdout(true, "ERROR", "Installing as a service unsupported on this platform"); LogStdout(true, "ERROR", "Installing as a service unsupported on this platform");