mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-20 03:47:16 +02:00
26 lines
535 B
Diff
26 lines
535 B
Diff
--- a/examples/lpostcmd.lua
|
|
+++ b/examples/lpostcmd.lua
|
|
@@ -6,7 +6,7 @@
|
|
-- after every successfullycompleted rsync operation.
|
|
-- for example to restart servlets on the target host or so.
|
|
|
|
-local rsyncpostcmd = {
|
|
+rsyncpostcmd = {
|
|
|
|
-- based on default rsync.
|
|
default.rsync,
|
|
@@ -105,14 +105,3 @@
|
|
return default.rsync.prepare(config, level, skipTarget)
|
|
end
|
|
}
|
|
-
|
|
-
|
|
-sync {
|
|
- rsyncpostcmd,
|
|
- delay = 3,
|
|
- source = '/path/to/src',
|
|
- host = 'localhost',
|
|
- targetdir = '/path/to/trg',
|
|
- postcmd = '/usr/local/bin/dopostcmd',
|
|
-}
|
|
-
|