From 4d6c476008985691a37074a042be47cba3c3ff1f Mon Sep 17 00:00:00 2001 From: Jeffrey Paul Date: Fri, 8 Apr 2016 23:08:04 +0200 Subject: [PATCH] fixed bugs --- mirror.run | 3 ++- mirror/Makefile | 2 +- mirror/syncubuntu.sh | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/mirror.run b/mirror.run index 8fe80e7..3c2dca7 100644 --- a/mirror.run +++ b/mirror.run @@ -1,4 +1,5 @@ #!/bin/bash cd /opt/mirror && make -sleep 21600 + +sleep ${MIRROR_INTERVAL_SECONDS:-43200} diff --git a/mirror/Makefile b/mirror/Makefile index 72b51fa..9f05f67 100644 --- a/mirror/Makefile +++ b/mirror/Makefile @@ -3,4 +3,4 @@ default: mirror mirror: - run-one-until-success bash mirror.sh + run-one-until-success bash syncubuntu.sh diff --git a/mirror/syncubuntu.sh b/mirror/syncubuntu.sh index 5cefbc0..bd69c61 100755 --- a/mirror/syncubuntu.sh +++ b/mirror/syncubuntu.sh @@ -8,7 +8,7 @@ debmirror \ -a i386,amd64 \ --no-source \ -s main,restricted,universe,multiverse \ - -h ${UBUNTU_MIRROR_SOURCE:-archive.ubuntu.com} + -h ${UBUNTU_MIRROR_SOURCE:-archive.ubuntu.com} \ -d trusty,trusty-updates,trusty-security,trusty-backports \ -d xenial,xenial-updates,xenial-security,xenial-backports \ -r /ubuntu \