From 29a3933c5c4139f0edb8da63d860679223ee6fbc Mon Sep 17 00:00:00 2001 From: Thomas Roeblitz Date: Tue, 7 May 2024 01:25:25 +0200 Subject: [PATCH] make all files writable too --- EESSI-determine-rebuilds.sh | 1 + bot/build.sh | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/EESSI-determine-rebuilds.sh b/EESSI-determine-rebuilds.sh index fac217e7e4..553c794aa6 100755 --- a/EESSI-determine-rebuilds.sh +++ b/EESSI-determine-rebuilds.sh @@ -114,6 +114,7 @@ else echo_yellow "Removing ${app_dir} and ${app_module}..." # echo "REMOVE_SOFTWARE ${app_dir}" find ${app_dir} -type d | sed -e 's/^/REMOVE_DIRECTORY /' + find ${app_dir} -type f | sed -e 's/^/REMOVE_FILE /' echo "REMOVE_MODULE ${app_module}" done else diff --git a/bot/build.sh b/bot/build.sh index 6ac38160bb..0dbab6117b 100755 --- a/bot/build.sh +++ b/bot/build.sh @@ -220,6 +220,11 @@ else mkdir -p ${STORAGE}/lower_dirs/${remove_dir} chmod u+rwx ${STORAGE}/lower_dirs/${remove_dir} done + grep ^REMOVE_FILE ${determine_outerr} | cut -f4- -d'/' > ${determine_outerr}.rm_files + cat ${determine_outerr}.rm_files | while read remove_file; do + touch ${STORAGE}/lower_dirs/${remove_file} + chmod u+rw ${STORAGE}/lower_dirs/${remove_file} + done # ls -lR "${STORAGE}/lower_dirs" # prepare directory to store tarball of tmp for removal and build steps