The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/distrobuilder/pull/279

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
This fixes the location of the unit files as well as their permissions.

Signed-off-by: Thomas Hipp <thomas.h...@canonical.com>
From 0356b903b888be922ebcad55c97692364e6b2618 Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.h...@canonical.com>
Date: Tue, 18 Feb 2020 22:00:11 +0100
Subject: [PATCH] generators/lxd-agent: Fix systemd unit files

This fixes the location of the unit files as well as their permissions.

Signed-off-by: Thomas Hipp <thomas.h...@canonical.com>
---
 generators/lxd-agent.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/generators/lxd-agent.go b/generators/lxd-agent.go
index 6ba78d11..cd861eb5 100644
--- a/generators/lxd-agent.go
+++ b/generators/lxd-agent.go
@@ -79,7 +79,7 @@ ExecStart=/run/lxd_config/9p/lxd-agent
 WantedBy=multi-user.target
 `
 
-       err := ioutil.WriteFile(filepath.Join(sourceDir, 
"/lib/systemd/lxd-agent.service"), []byte(lxdAgentServiceUnit), 0400)
+       err := ioutil.WriteFile(filepath.Join(sourceDir, 
"/lib/systemd/system/lxd-agent.service"), []byte(lxdAgentServiceUnit), 0644)
        if err != nil {
                return err
        }
@@ -106,7 +106,7 @@ ExecStart=/bin/mount -t 9p config /run/lxd_config/9p -o 
access=0
 WantedBy=multi-user.target
 `
 
-       err = ioutil.WriteFile(filepath.Join(sourceDir, 
"/lib/systemd/lxd-agent-9p.service"), []byte(lxdConfigShareMountUnit), 0400)
+       err = ioutil.WriteFile(filepath.Join(sourceDir, 
"/lib/systemd/system/lxd-agent-9p.service"), []byte(lxdConfigShareMountUnit), 
0644)
        if err != nil {
                return err
        }
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to