summaryrefslogtreecommitdiff
path: root/nightly_build.bash
diff options
context:
space:
mode:
authorHolger Paradies <retabell@gmx.de>2024-03-10 20:47:08 +0100
committerHolger Paradies <retabell@gmx.de>2025-04-26 15:00:54 +0200
commit78e7506ea122574bfaee90bca15d299221bc4236 (patch)
treef109b2048128b29f73b2ed73e2c5e60b6bfdb870 /nightly_build.bash
parentfd9edfd3e9b9afc3bd963844c0646372d2013b24 (diff)
downloadkanotix-78e7506ea122574bfaee90bca15d299221bc4236.zip
kanotix-78e7506ea122574bfaee90bca15d299221bc4236.tar.gz
nb provide targetdirHEADmaster
Diffstat (limited to 'nightly_build.bash')
-rwxr-xr-xnightly_build.bash11
1 files changed, 7 insertions, 4 deletions
diff --git a/nightly_build.bash b/nightly_build.bash
index 25eae97..340eff6 100755
--- a/nightly_build.bash
+++ b/nightly_build.bash
@@ -48,20 +48,23 @@ return $IERR
rm -rf cache tmpfs/cache
+TARGETDIR="/data/kanotix"
+
# delete iso files older 35 days
-find /data/kanotix/nightly -mtime +35 -type f -print -delete
-find /data/kanotix/nightly -type d -empty -print -delete
+find $TARGETDIR/nightly -mtime +35 -type f -print -delete
+find $TARGETDIR/nightly -type d -empty -print -delete
# reset apt-cacher-ng cache
find /var/cache/apt-cacher-ng \( -type f -name 'Packages*' -o -name 'Sources*' -o -name 'Release*' -o -name 'InRelease*' \) -delete
d="$(date +%y%m%d)"
v=a
-target=/data/kanotix/nightly/$d
-next=/data/kanotix/nightly/.next
+target=$TARGETDIR/nightly/$d
+next=$TARGETDIR/nightly/.next
rm -rf $next
mkdir -p $target $next
+rm -f $target/isos-failed.txt
## remove gfxdetect entries from grub.cfg (for non-gfxdetect-builds)
#sed -i '/gfxdetect/,/^}/{d}' config/binary_grub/grub.cfg