File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -83,15 +83,23 @@ _tailscale_install() {
83
83
exit 1
84
84
}
85
85
86
- if [ ! -e " /etc/systemd/system/tailscale-install.service" ]; then
86
+ if [ ! -L " /etc/systemd/system/tailscale-install.service" ]; then
87
+ if [ ! -e " ${TAILSCALE_ROOT} /tailscale-install.service" ]; then
88
+ rm -f /etc/systemd/system/tailscale-install.service
89
+ fi
90
+
87
91
echo " Installing pre-start script to install Tailscale on firmware updates."
88
92
ln -s " ${TAILSCALE_ROOT} /tailscale-install.service" /etc/systemd/system/tailscale-install.service
89
93
90
94
systemctl daemon-reload
91
95
systemctl enable tailscale-install.service
92
96
fi
93
97
94
- if [ ! -e " /etc/systemd/system/tailscale-install.timer" ]; then
98
+ if [ ! -L " /etc/systemd/system/tailscale-install.timer" ]; then
99
+ if [ ! -e " ${TAILSCALE_ROOT} /tailscale-install.timer" ]; then
100
+ rm -f /etc/systemd/system/tailscale-install.timer
101
+ fi
102
+
95
103
echo " Installing auto-update timer to ensure that Tailscale is kept installed and up to date."
96
104
ln -s " ${TAILSCALE_ROOT} /tailscale-install.timer" /etc/systemd/system/tailscale-install.timer
97
105
You can’t perform that action at this time.
0 commit comments