~fginther/+junk/python2or3.2

« back to all changes in this revision

Viewing changes to run_otto_job

  • Committer: Francis Ginther
  • Date: 2014-02-21 22:03:09 UTC
  • mto: This revision was merged to the branch mainline in revision 16.
  • Revision ID: francis.ginther@canonical.com-20140221220309-12fldy2hnja103p7
Add sudo for lxc-ls calls

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
 
71
71
ARCH=$(dpkg --print-architecture )
72
72
# Find newest container
73
 
CONTAINER=$(lxc-ls "${series}-${ARCH}-*" | tail -1)
 
73
CONTAINER=$(sudo lxc-ls "${series}-${ARCH}-*" | tail -1)
74
74
 
75
75
if [ -z "$CONTAINER" ] ; then
76
76
    echo "E: couldn't find containers matching '${series}-${ARCH}-*'".
77
77
    echo "E: Containers available on this system:"
78
 
    lxc-ls -1
 
78
    sudo lxc-ls -1
79
79
    exit 1
80
80
fi
81
81