19 lines
353 B
Bash
19 lines
353 B
Bash
#! /bin/sh
|
|
set -eu
|
|
|
|
# Script to synchronize ALT Linux repository branches from remote
|
|
# sources to local.
|
|
IMAGES_DEST="${IMAGES_DEST:-/data/shared/iso}"
|
|
IMAGE=${IMAGE:-NULL}
|
|
FILE=${FILE:-NULL}
|
|
|
|
mkdir -p "${IMAGES_DEST}"
|
|
|
|
echo "Syncing: ${IMAGE}"
|
|
echo "Syncing to: ${IMAGES_DEST}/${FILE}"
|
|
|
|
wget -c -nc -O "${IMAGES_DEST}/${FILE}" "${IMAGE}"
|
|
|
|
exit $?
|
|
|