fix(etcd): Place etcd.service drop-in in /run

This commit is contained in:
Brian Waldon 2014-03-18 10:36:34 -07:00
parent c57464c845
commit cfa17ca2d2
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ func (ec EtcdEnvironment) String() (out string) {
// Write an EtcdEnvironment to the appropriate path on disk for etcd.service
func WriteEtcdEnvironment(env EtcdEnvironment, root string) error {
file := system.File{
Path: path.Join(root, "etc", "systemd", "system", "etcd.service.d", "20-cloudinit.conf"),
Path: path.Join(root, "run", "systemd", "system", "etcd.service.d", "20-cloudinit.conf"),
RawFilePermissions: "0644",
Content: env.String(),
}

View File

@ -59,7 +59,7 @@ func TestEtcdEnvironmentWrittenToDisk(t *testing.T) {
t.Fatalf("Processing of EtcdEnvironment failed: %v", err)
}
fullPath := path.Join(dir, "etc", "systemd", "system", "etcd.service.d", "20-cloudinit.conf")
fullPath := path.Join(dir, "run", "systemd", "system", "etcd.service.d", "20-cloudinit.conf")
fi, err := os.Stat(fullPath)
if err != nil {