summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFrancois Marier <francois@fmarier.org>2026-01-23 08:30:19 -0800
committerGitHub <noreply@github.com>2026-01-23 16:30:19 +0000
commitdf547517251b8ef6ce68eeb74df6b3d0b3b50360 (patch)
treecc5496eb2626d5d832f4bf5d171ce37fa432e496
parent63d563e7340b4712b9f2933f663057ce2dcfa4a4 (diff)
downloadtailscale-df547517251b8ef6ce68eeb74df6b3d0b3b50360.tar.xz
tailscale-df547517251b8ef6ce68eeb74df6b3d0b3b50360.zip
scripts/installer.sh: allow running dnf5 install script twice (#18492)
`dnf config-manager addrepo` will fail if the Tailscale repo is already installed. Without the --overwrite flag, the installer will error out instead of succeeding like with dnf3. Fixes #18491 Signed-off-by: Francois Marier <francois@fmarier.org>
-rwxr-xr-xscripts/installer.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/installer.sh b/scripts/installer.sh
index 89d54a431..76e8943e9 100755
--- a/scripts/installer.sh
+++ b/scripts/installer.sh
@@ -603,7 +603,7 @@ main() {
$SUDO dnf config-manager --add-repo "https://pkgs.tailscale.com/$TRACK/$OS/$VERSION/tailscale.repo"
elif [ "$DNF_VERSION" = "5" ]; then
# Already installed config-manager, above.
- $SUDO dnf config-manager addrepo --from-repofile="https://pkgs.tailscale.com/$TRACK/$OS/$VERSION/tailscale.repo"
+ $SUDO dnf config-manager addrepo --overwrite --from-repofile="https://pkgs.tailscale.com/$TRACK/$OS/$VERSION/tailscale.repo"
else
echo "unexpected: unknown dnf version $DNF_VERSION"
exit 1