~ubuntu-archive/ubuntu-archive-scripts/trunk

« back to all changes in this revision

Viewing changes to update-transitions

  • Committer: Steve Langasek
  • Date: 2023-12-19 06:16:57 UTC
  • Revision ID: steve.langasek@canonical.com-20231219061657-3vtta1sc7bxqirn5
Handle the rdepends/ALL subtree with rsync instead of diff.

This is a symlink tree and thus immune to patching.  germinate-output has
been out of date for some time as a result of non-zero exit codes from diff,
this should fix that.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
set -e
3
3
 
4
 
schroot -c trusty-transitions -d "$HOME" /srv/transitions/transition-tracker/go
5
 
rsync -aq --delete-after --delete /srv/chroots/trusty-transitions/srv/transitions/www/ "$HOME/public_html/transitions/"
 
4
# This could run as 1000/1000 , but for some reason it outputs
 
5
# Fatal error: exception Not_found
 
6
# If debugged, we could do the below instead, but for now the 'go' script runs
 
7
# as root and chmods its output to ubuntu:ubuntu (inside the chroot, which maps
 
8
# to ubuntu-archive outside)
 
9
 
 
10
# lxc exec --user 1000 --group 1000 ben -- /srv/transitions/transition-tracker/config/go
 
11
flock -xn -E 0 ~/.update-transitions.lock lxc exec ben -- sudo -u ubuntu /srv/transitions/transition-tracker/config/go