mirror: Added support for running command after mirror sync is completed.

This commit is contained in:
Timo Mkinen 2013-07-16 10:12:45 +03:00
parent 9b243b66d7
commit 73e88d179a
3 changed files with 16 additions and 1 deletions

View file

@ -83,6 +83,9 @@ class mirror($datadir = "/srv/mirrors") {
# $source:
# Rsync path from where to sync mirror
#
# $postcmd:
# Run this command after sync is completed
#
# $rsync_options:
# Extra options for rsync
#
@ -97,7 +100,7 @@ class mirror($datadir = "/srv/mirrors") {
# ],
# }
#
define mirror::mirror($source, $rsync_options=[]) {
define mirror::mirror($source, $rsync_options=[], $postcmd=undef) {
require mirror