11 lines
225 B
Text
11 lines
225 B
Text
|
#!/bin/bash
|
||
|
|
||
|
set -eu
|
||
|
|
||
|
DIB_DISTRIBUTION_MIRROR=${DIB_DISTRIBUTION_MIRROR:-}
|
||
|
|
||
|
[ -n "$DIB_DISTRIBUTION_MIRROR" ] || exit 0
|
||
|
|
||
|
sudo sed -ie "s&http://archive.ubuntu.com/ubuntu&$DIB_DISTRIBUTION_MIRROR&" \
|
||
|
/etc/apt/sources.list
|