From 5a60293a3b141aba0ff5880e3a0a4a90f6078a13 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Sat, 21 May 2016 16:14:08 +0000 Subject: [PATCH] Fix unneeded changing of symlinks on mirror. releng ticket 6419 --- roles/bodhi2/backend/files/fedora-epel-push | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) mode change 100755 => 100644 roles/bodhi2/backend/files/fedora-epel-push diff --git a/roles/bodhi2/backend/files/fedora-epel-push b/roles/bodhi2/backend/files/fedora-epel-push old mode 100755 new mode 100644 index 6eac7d7eb2..ba3cc46997 --- a/roles/bodhi2/backend/files/fedora-epel-push +++ b/roles/bodhi2/backend/files/fedora-epel-push @@ -1,7 +1,7 @@ #!/bin/sh SOURCE=/mnt/koji/mash/updates -DEST=/pub/epel/ +DEST=/pub/epel OPTIONS="-rlptDvHh --stats --delay-updates $RSYNC_OPTS" @@ -97,8 +97,8 @@ for rel in 5 6 7; do # Does our symbolic link exist? if [ -L ${TARGET} ]; then # check to see if the link matches the candidate - TEST=$( readlink ${TARGET} ) - if [ ${TEST} != ${CANDIDATE} ]; then + TEST=$( readlink -e ${TARGET} ) + if [ "${TEST}" != "${CANDIDATE}" ]; then ln -sf $(echo ${CANDIDATE}|sed -e "s|$DEST|./|g" -e 's|//|/|g') ${TARGET} fi else