mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-27 04:12:29 +01:00
26 lines
575 B
Diff
26 lines
575 B
Diff
--- a/examples/lpostcmd.lua
|
|
+++ b/examples/lpostcmd.lua
|
|
@@ -25,7 +25,7 @@
|
|
-- uses rawget to test if "isPostcmd" has been set without
|
|
-- triggering an error if not.
|
|
local isPostcmd = rawget(event, "isPostcmd")
|
|
- if event.isPostcmd then
|
|
+ if isPostcmd then
|
|
spawn(event, "/usr/bin/ssh",
|
|
config.host, config.postcmd)
|
|
return
|
|
@@ -75,13 +75,3 @@
|
|
return default.rsync.prepare(config)
|
|
end
|
|
}
|
|
-
|
|
-
|
|
-sync {
|
|
- rsyncpostcmd,
|
|
- source = "src",
|
|
- host = "beetle",
|
|
- targetdir = "/path/to/trg",
|
|
- postcmd = "/usr/local/bin/restart-servelt.sh",
|
|
-}
|
|
-
|