mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-07 13:45:42 +12:00
Fix building on linux
This commit is contained in:
parent
70359f967a
commit
59392db9bb
1 changed files with 3 additions and 2 deletions
|
@ -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");
|
||||||
|
|
Loading…
Add table
Reference in a new issue