docker-ubuntumirror/mirror/syncubuntu.sh

22 lines
476 B
Bash
Raw Normal View History

2016-04-08 20:41:48 +00:00
#!/bin/bash
set -x
THISDIR="$(cd $(dirname "$BASH_SOURCE") && pwd -P)"
DST="/var/mirror"
2016-04-08 21:24:53 +00:00
export GNUPGHOME="/etc/debmirror/ubuntu"
2016-04-08 20:41:48 +00:00
debmirror \
-a i386,amd64 \
--no-source \
-s main,restricted,universe,multiverse \
2016-04-08 21:08:04 +00:00
-h ${UBUNTU_MIRROR_SOURCE:-archive.ubuntu.com} \
2016-04-08 20:41:48 +00:00
-d trusty,trusty-updates,trusty-security,trusty-backports \
-d xenial,xenial-updates,xenial-security,xenial-backports \
-r /ubuntu \
--progress \
--method=http \
$DST/ubuntu
chmod -R a+rX $DST/ubuntu