From 6882715a3f2af2a5e320dd9feb863b2fb55d06e2 Mon Sep 17 00:00:00 2001 From: flightlevel Date: Fri, 15 Mar 2019 20:59:00 +1100 Subject: [PATCH] Give scripts execute permission --- build.cake | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/build.cake b/build.cake index 3f979883e..a63836744 100644 --- a/build.cake +++ b/build.cake @@ -395,6 +395,19 @@ private void Gzip(string sourceFolder, string outputDirectory, string tarCdirect RunLinuxCommand("find", MakeAbsolute(Directory(sourceFolder)) + @" -type f -exec chmod 644 {} \;"); RunLinuxCommand("chmod", $"755 {MakeAbsolute(Directory(sourceFolder))}/Jackett/jackett"); RunLinuxCommand("chmod", $"755 {MakeAbsolute(Directory(sourceFolder))}/Jackett/JackettUpdater"); + + string systemdScript = MakeAbsolute(Directory(sourceFolder)) + "/Jackett/install_service_systemd.sh"; + if (FileExists(systemdScript)) + { + RunLinuxCommand("chmod", $"755 {systemdScript}"); + } + + string macOsServiceScript = MakeAbsolute(Directory(sourceFolder)) + "/Jackett/install_service_macos"; + if (FileExists(macOsServiceScript)) + { + RunLinuxCommand("chmod", $"755 {macOsServiceScript}"); + } + RunLinuxCommand("tar", $"-C {sourceFolder} -zcvf {outputDirectory}/{tarFileName}.gz {tarCdirectoryOption}"); } }