mirror: Added support for running command after mirror sync is completed.
This commit is contained in:
parent
9b243b66d7
commit
73e88d179a
3 changed files with 16 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue