1 2 3 4 5 6 7 8 9
[Trigger] Operation = Install Type = Package Target = caddy-trojan [Action] Description = Copying Caddyfile... When = PostTransaction Exec = [[ ! -f /etc/caddy/Caddyfile ]] && /usr/bin/install -Dm644 /usr/share/caddy/Caddyfile /etc/caddy/Caddyfile