File: docker-wrapper

package info (click to toggle)
aptly 1.6.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 49,928 kB
  • sloc: python: 10,398; sh: 252; makefile: 184
file content (18 lines) | stat: -rwxr-xr-x 456 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh -e

# make sure files are written with correct user ownership
if [ `stat -c %u /work/src` -ne 0 ]; then
    usermod -u `stat -c %u /work/src` aptly >/dev/null
    chown -R `stat -c %u /work/src` /var/lib/aptly
fi

args="$@"
if [ -z "$args" ]; then
    cp /work/src/completion.d/aptly /usr/share/bash-completion/completions/
    cmd="bash"
else
    cmd="make $@"
fi

cd /work/src
sudo -u aptly PATH=$PATH:/work/src/build GOPATH=/work/src/.go $cmd