diff mbox series

[auto-upgrade-helper,2/2] weeklyjob.sh: Drop

Message ID 20231101114505.2306354-2-richard.purdie@linuxfoundation.org
State New
Headers show
Series [auto-upgrade-helper,1/2] upgrade-helper: Drop layer_machines | expand

Commit Message

Richard Purdie Nov. 1, 2023, 11:45 a.m. UTC
We run AUH from the autobuilder and we don't need the cron script any more,
we'd point people at the scripts there instead.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 weeklyjob.sh | 30 ------------------------------
 1 file changed, 30 deletions(-)
 delete mode 100755 weeklyjob.sh
diff mbox series

Patch

diff --git a/weeklyjob.sh b/weeklyjob.sh
deleted file mode 100755
index 94598a2..0000000
--- a/weeklyjob.sh
+++ /dev/null
@@ -1,30 +0,0 @@ 
-#!/bin/bash
-
-# Cronjob which can be run weekly to run the upgrade helper script.
-# Add the job in /etc/crontab like below.
-#
-# It will execute weekly at the same hour (8 AM).
-#
-# 00 8   * * 6   auh  /home/auh/bin/weeklyjob.sh
-
-# Re-assign these to match your setup!
-auh_dir=~/auto-upgrade-helper
-poky_dir=~/poky
-build_dir=~/build-tmp-auh-upgrades
-sstate_dir=~/sstate-cache
-
-pushd $poky_dir
-
-# Base the upgrades on poky master
-git fetch origin
-git checkout -B tmp-auh-upgrades origin/master
-
-source $poky_dir/oe-init-build-env $build_dir
-$auh_dir/upgrade-helper.py -e all
-
-# clean up to avoid the disk filling up
-rm -rf $build_dir/tmp/
-rm -rf $build_dir/workspace/sources/*
-find $sstate_dir -atime +10 -delete
-
-popd