Make systemd scripts executable

This commit is contained in:
flightlevel
2019-03-13 20:20:07 +11:00
parent 83720c6982
commit eda182f2c9

View File

@@ -304,6 +304,17 @@ namespace Jackett.Common.Services
string jackettUpdaterPath = tempDir + "/Jackett/JackettUpdater";
filePermissionService.MakeFileExecutable(jackettUpdaterPath);
if (variant == Variants.JackettVariant.CoreMacOs)
{
string macosServicePath = tempDir + "/Jackett/install_service_macos";
filePermissionService.MakeFileExecutable(macosServicePath);
}
else
{
string systemdPath = tempDir + "/Jackett/install_service_systemd.sh";
filePermissionService.MakeFileExecutable(systemdPath);
}
}
}