mirror of
https://github.com/tailscale/tailscale.git
synced 2026-03-28 00:31:51 +01:00
release/dist/unixpkgs: include tailscale-online.target in packages
The tailscale-online.target and tailscale-wait-online.service systemd units were added in 30e12310f1 but never included in the release packaging (tarballs, debs, rpms). Updates #11504 Change-Id: I93e03e1330a7ff8facf845c7ca062ed2f0d35eaa Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com> (cherry picked from commit 2b1030a4317bbb5c728688680f61eb6d9df52e55)
This commit is contained in:
parent
41cb72f271
commit
d15a5654aa
26
release/dist/unixpkgs/pkgs.go
vendored
26
release/dist/unixpkgs/pkgs.go
vendored
@ -140,6 +140,12 @@ func (t *tgzTarget) Build(b *dist.Build) ([]string, error) {
|
||||
if err := addFile(filepath.Join(tailscaledDir, "tailscaled.defaults"), filepath.Join(dir, "tailscaled.defaults"), 0644); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if err := addFile(filepath.Join(tailscaledDir, "tailscale-online.target"), filepath.Join(dir, "tailscale-online.target"), 0644); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if err := addFile(filepath.Join(tailscaledDir, "tailscale-wait-online.service"), filepath.Join(dir, "tailscale-wait-online.service"), 0644); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
if err := tw.Close(); err != nil {
|
||||
return nil, err
|
||||
@ -223,6 +229,16 @@ func (t *debTarget) Build(b *dist.Build) ([]string, error) {
|
||||
Source: filepath.Join(tailscaledDir, "tailscaled.service"),
|
||||
Destination: "/lib/systemd/system/tailscaled.service",
|
||||
},
|
||||
&files.Content{
|
||||
Type: files.TypeFile,
|
||||
Source: filepath.Join(tailscaledDir, "tailscale-online.target"),
|
||||
Destination: "/lib/systemd/system/tailscale-online.target",
|
||||
},
|
||||
&files.Content{
|
||||
Type: files.TypeFile,
|
||||
Source: filepath.Join(tailscaledDir, "tailscale-wait-online.service"),
|
||||
Destination: "/lib/systemd/system/tailscale-wait-online.service",
|
||||
},
|
||||
&files.Content{
|
||||
Type: files.TypeConfigNoReplace,
|
||||
Source: filepath.Join(tailscaledDir, "tailscaled.defaults"),
|
||||
@ -360,6 +376,16 @@ func (t *rpmTarget) Build(b *dist.Build) ([]string, error) {
|
||||
Source: filepath.Join(tailscaledDir, "tailscaled.service"),
|
||||
Destination: "/lib/systemd/system/tailscaled.service",
|
||||
},
|
||||
&files.Content{
|
||||
Type: files.TypeFile,
|
||||
Source: filepath.Join(tailscaledDir, "tailscale-online.target"),
|
||||
Destination: "/lib/systemd/system/tailscale-online.target",
|
||||
},
|
||||
&files.Content{
|
||||
Type: files.TypeFile,
|
||||
Source: filepath.Join(tailscaledDir, "tailscale-wait-online.service"),
|
||||
Destination: "/lib/systemd/system/tailscale-wait-online.service",
|
||||
},
|
||||
&files.Content{
|
||||
Type: files.TypeConfigNoReplace,
|
||||
Source: filepath.Join(tailscaledDir, "tailscaled.defaults"),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user