File: noproxy

package info (click to toggle)
auto-apt-proxy 17
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 192 kB
  • sloc: sh: 428; makefile: 11
file content (19 lines) | stat: -rwxr-xr-x 350 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

set -eu

export AUTO_APT_PROXY_NO_CACHE=1

if ! newnet true; then
  echo "I: cannot use user namespaces"
  exit 77
fi

echo "Running auto-apt-proxy on a fresh network namespace"
echo "Proxy should be empty"
proxy="$(newnet auto-apt-proxy)"
echo "Proxy = \"${proxy}\""
if test -n "${proxy}"; then
  echo "E: proxy is not empty"
  exit 1
fi