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