Skip to content

Commit 66e0da6

Browse files
committed
Add cleanup script to cleanup repofiles
1 parent 13be123 commit 66e0da6

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
3+
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
4+
set -x
5+
fi
6+
set -eu
7+
set -o pipefail
8+
9+
[ -n "$TARGET_ROOT" ]
10+
11+
if [ ! -z "$DIB_ROCKY_CONTAINER_STACKHPC_CLEANUP_REPOFILES" ]; then
12+
sudo rm -rf ${TARGET_ROOT}/etc/yum.repos.d/*.repo
13+
fi

0 commit comments

Comments
 (0)