26
by Ubuntu Archive
add more archive report jobs |
1 |
#! /bin/sh
|
2 |
set -e
|
|
3 |
||
287
by Iain Lane
update-transitions: Update for ben in an lxd container |
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
|
|
324
by Łukasz 'sil2100' Zemczak
...run ben as ubuntu using sudo, as the previous approach doesn't work |
11 |
flock -xn -E 0 ~/.update-transitions.lock lxc exec ben -- sudo -u ubuntu /srv/transitions/transition-tracker/config/go |