mirror of
https://github.com/lineageos4microg/docker-lineage-cicd
synced 2024-11-09 10:09:56 +01:00
Remove old repo logs
This commit is contained in:
parent
1a467b6ddd
commit
7e1ccbb8d3
@ -376,6 +376,10 @@ if ! [ -z "$OPENDELTA_BUILDS_JSON" ]; then
|
||||
/usr/bin/python /root/opendelta_builds_json.py "$ZIP_DIR" -o "$ZIP_DIR/$OPENDELTA_BUILDS_JSON"
|
||||
fi
|
||||
|
||||
if [ "$DELETE_OLD_LOGS" -gt "0" ]; then
|
||||
find "$LOGS_DIR" -maxdepth 1 -name repo-*.log | sort | head -n -$DELETE_OLD_LOGS | xargs rm
|
||||
fi
|
||||
|
||||
if [ -f /root/userscripts/end.sh ]; then
|
||||
echo ">> [$(date)] Running end.sh"
|
||||
/root/userscripts/end.sh
|
||||
|
Loading…
Reference in New Issue
Block a user