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

« back to all changes in this revision

Viewing changes to update-transitions

  • Committer: Iain Lane
  • Date: 2020-07-30 10:36:34 UTC
  • Revision ID: iain.lane@canonical.com-20200730103634-r50g50glaxjqk8p7
update-transitions: Update for ben in an lxd container

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 -- /srv/transitions/transition-tracker/config/go