~fginther/ubuntu-test-cases/revert-unlock-workaround

« back to all changes in this revision

Viewing changes to utils/target/prepare-autopilot-test.sh

  • Committer: Francis Ginther
  • Date: 2014-08-21 01:41:16 UTC
  • mfrom: (216.1.1 mp-adb-user-fix)
  • Revision ID: francis.ginther@canonical.com-20140821014116-y013i3mjjfqlguts
use sudo to run things that need root, and provision sudoers so that phablet user can run things as root

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
        MISSING=0
9
9
        dpkg -s $PKGS 2>/dev/null >/dev/null || MISSING=1
10
10
        if [ $MISSING -eq 1 ] ; then
11
 
                apt-get install -yq --force-yes $PKGS
 
11
                sudo apt-get install -yq --force-yes $PKGS
12
12
        else
13
13
                echo "setup not needed"
14
14
        fi