Skip to content

Commit

Permalink
Backport: Make runit run and finish scripts executable
Browse files Browse the repository at this point in the history
Signed-off-by: AnErrupTion <[email protected]>
  • Loading branch information
AnErrupTion committed Jul 26, 2024
1 parent 391104c commit a042749
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ pub fn ServiceInstaller(comptime init_system: InitSystem) type {
defer service_dir.close();

try std.fs.cwd().copyFile("res/ly-runit-service/conf", service_dir, "conf", .{});
try std.fs.cwd().copyFile("res/ly-runit-service/finish", service_dir, "finish", .{});
try std.fs.cwd().copyFile("res/ly-runit-service/run", service_dir, "run", .{});
try std.fs.cwd().copyFile("res/ly-runit-service/finish", service_dir, "finish", .{ .override_mode = 0o755 });
try std.fs.cwd().copyFile("res/ly-runit-service/run", service_dir, "run", .{ .override_mode = 0o755 });
},
.Systemd => {
const service_path = try std.fs.path.join(allocator, &[_][]const u8{ dest_directory, "/usr/lib/systemd/system" });
Expand Down

0 comments on commit a042749

Please sign in to comment.