diff --git a/setup/so-functions b/setup/so-functions index d8dae85bc..3ffd6159e 100755 --- a/setup/so-functions +++ b/setup/so-functions @@ -2343,19 +2343,19 @@ securityonion_repo() { if [[ "$INTERWEBS" == "AIRGAP" ]]; then echo "This is airgap I don't need to add this repo" else - mkdir -p /root/oldrepos - mv -v /etc/yum.repos.d/* /root/oldrepos/ - ls -la /etc/yum.repos.d/ - rm -rf /etc/yum.repos.d - yum clean all - yum repolist all - mkdir -p /etc/yum.repos.d + logCmd "mkdir -vp /root/oldrepos" + logCmd "mv -v /etc/yum.repos.d/* /root/oldrepos/" + logCmd "ls -la /etc/yum.repos.d/" + logCmd "rm -vrf /etc/yum.repos.d" + logCmd "yum clean all" + logCmd "yum repolist all" + logCmd "mkdir -vp /etc/yum.repos.d" if [[ ! $is_manager && "$MANAGERUPDATES" == "1" ]]; then - cp -f ../salt/repo/client/files/centos/securityonioncache.repo /etc/yum.repos.d/ + logCmd "cp -f ../salt/repo/client/files/centos/securityonioncache.repo /etc/yum.repos.d/" else - cp -f ../salt/repo/client/files/centos/securityonion.repo /etc/yum.repos.d/ + logCmd "cp -f ../salt/repo/client/files/centos/securityonion.repo /etc/yum.repos.d/" fi - yum repolist all + logCmd "yum repolist all" fi else echo "This is Ubuntu"