Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • trisquel/ubuntu-purge
  • leny2010/ubuntu-purge
  • aklis/ubuntu-purge
  • Legimet/ubuntu-purge
  • free_speech/ubuntu-purge
  • chaosmonk/ubuntu-purge
  • adfeno/ubuntu-purge
  • pabloyoyoista/ubuntu-purge
  • Ark74/ubuntu-purge
  • jas/ubuntu-purge
10 results
Show changes
#!/bin/sh
#
# Copyright (C) 2008,2009,2010,2011 Ruben Rodriguez <ruben@gnu.org>
# Copyright (C) 2008-2022 Ruben Rodriguez <ruben@gnu.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
......@@ -18,34 +18,36 @@
cd /home/ubuntu
set -e
set -x
doall(){
if [ -e LOCK ]; then
echo "Lock file found, aborting run."
exit 1
fi
echo Started on $(date)
date
echo Self updating from git...
git --git-dir=/home/ubuntu/.git pull --all
echo Updating git package-helpers...
git --git-dir=/home/ubuntu/package-helpers/.git pull --all
git --git-dir=/home/ubuntu/.git pull
echo Updating ubuntu mirrors...
reprepro -v -b . update
if reprepro -v -b . update
then
[ -f ERROR ] && rm ERROR
else
repexit(){
echo WARNING: reprepro ended unexpectedly
echo Do NOT update any leaf repositories from here until it is fixed
date > ERROR
fi
echo "Error during update at $(date)" > ERROR
rm -f LOCK
exit 1
}
echo "Locking for repo update at $(date)" > LOCK
echo Updating ubuntu mirrors...
#reprepro --noskipold -v -b . predelete || repexit
reprepro --noskipold -v -b . update || repexit
echo Removing non free packages...
rm list
sh purge.sh lucid taranis
sh purge.sh precise toutatis
sh purge.sh trusty belenos
echo DONE
}
sh purge.sh bionic etiona
sh purge.sh focal nabia
sh purge.sh jammy aramo
rm ERROR LOCK -f
echo DONE at $(date)
savelog logs/update.log
doall 2>&1 | tee logs/update.log