Skip to content

Commit 59da1ec

Browse files
authored
Merge pull request #68 from stackhpc/fix-repofile-cleanup
Look for temporary directory containing upstream repo files in TARGET_ROOT
2 parents 6041ad4 + b0b6af9 commit 59da1ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

elements/rocky-container-stackhpc/cleanup.d/80-cleanup-and-restore-repofiles

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ DIB_ROCKY_CONTAINER_STACKHPC_RESTORE_UPSTREAM_REPOFILES=${DIB_ROCKY_CONTAINER_ST
1111
[ -n "$TARGET_ROOT" ]
1212

1313
# Remove custom repo files
14-
if [ -d /tmp/orig_repos ]; then
14+
if [ -d "${TARGET_ROOT}/tmp/orig_repos" ]; then
1515
sudo rm -f ${TARGET_ROOT}/etc/yum.repos.d/*.repo
1616
fi
1717

0 commit comments

Comments
 (0)