From 57243f65e3c45460951b77c1549ac06103083870 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Thu, 9 Oct 2025 11:12:29 -0700 Subject: [PATCH] Do not use OR, .list file was not getting changed. --- tasks/general/acct_mgmt/users.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tasks/general/acct_mgmt/users.yml b/tasks/general/acct_mgmt/users.yml index f875a4b..636bc94 100644 --- a/tasks/general/acct_mgmt/users.yml +++ b/tasks/general/acct_mgmt/users.yml @@ -835,8 +835,9 @@ echo "*** Continuing with upgrade. ***" sudo sed -i "s/$OLD/$NEW/g" /etc/apt/sources.list - find /etc/apt/sources.list.d/ \ - -name "*.list" -o -name "*.sources" \ + find /etc/apt/sources.list.d/ -name "*.list" \ + -exec sudo sed -i "s/$OLD/$NEW/g" {} \; + find /etc/apt/sources.list.d/ -name "*.sources" \ -exec sudo sed -i "s/$OLD/$NEW/g" {} \; sudo grep $OLD /etc/apt/sources.list /etc/apt/sources.list.d/*.{list,sources}