From cafae574a86359a61597b6ee8fe2524765ff7b94 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 11 Aug 2023 10:49:49 +0200 Subject: [PATCH] 40-autodist-cleanold: minor fix for chroot environments --- etc/cron.daily/40-autodist-cleanold | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/cron.daily/40-autodist-cleanold b/etc/cron.daily/40-autodist-cleanold index 7194c26..8993410 100755 --- a/etc/cron.daily/40-autodist-cleanold +++ b/etc/cron.daily/40-autodist-cleanold @@ -49,7 +49,7 @@ for i in `seq 0 ${#AUTOPORT_ARCH[*]}`; do [ -e /var/autoport/$a/var/tmp/autodist ] && \ find /var/autoport/$a/var/tmp/autodist/ -mindepth 1 -maxdepth 1 -type f -ctime ${TMP_CTIME_OLD} -exec rm -rf {} \; find /var/autoport/$a/tmp/ -mindepth 1 -maxdepth 1 -type f -ctime ${TMP_CTIME_OLD} -exec rm -rf {} \; - sudo -u ${AUTOPORT_CHROOT_USER[$i]} ccache -C + autoport-chroot $a ccache -C elif [ "${AUTOPORT_UPDATE[$i]}" ]; then clean /var/autodist find /var/autodist-tmp/ -mindepth 1 -maxdepth 1 -ctime ${TMP_CTIME_OLD} -exec rm -rf {} \;