Merge pull request #33 from bcwaldon/etcd-dropin-run
fix(etcd): Place etcd.service drop-in in /run
This commit is contained in:
commit
61ffbd41c9
@ -37,7 +37,7 @@ func (ec EtcdEnvironment) String() (out string) {
|
|||||||
// Write an EtcdEnvironment to the appropriate path on disk for etcd.service
|
// Write an EtcdEnvironment to the appropriate path on disk for etcd.service
|
||||||
func WriteEtcdEnvironment(env EtcdEnvironment, root string) error {
|
func WriteEtcdEnvironment(env EtcdEnvironment, root string) error {
|
||||||
file := system.File{
|
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",
|
RawFilePermissions: "0644",
|
||||||
Content: env.String(),
|
Content: env.String(),
|
||||||
}
|
}
|
||||||
|
@ -59,7 +59,7 @@ func TestEtcdEnvironmentWrittenToDisk(t *testing.T) {
|
|||||||
t.Fatalf("Processing of EtcdEnvironment failed: %v", err)
|
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)
|
fi, err := os.Stat(fullPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user