Merge pull request #15 from jolheiser/infinipaste
chore: infinipaste -> tclip
This commit is contained in:
commit
1bab8e2ec9
|
@ -14,12 +14,12 @@ import (
|
|||
|
||||
var (
|
||||
fname = flag.String("n", "", "filename to use for pastes from standard input")
|
||||
target = flag.String("target", "http://paste", "infinipaste server URL")
|
||||
target = flag.String("target", "http://paste", "tclip server URL")
|
||||
)
|
||||
|
||||
func main() {
|
||||
flag.Usage = func() {
|
||||
fmt.Fprintf(os.Stderr, "Usage: %s [filename]\n\nTakes a file or standard in and posts it to your tailnet's infinipaste service. Returns a URL on standard out for sharing.\n\nFlags:\n", filepath.Base(os.Args[0]))
|
||||
fmt.Fprintf(os.Stderr, "Usage: %s [filename]\n\nTakes a file or standard in and posts it to your tailnet's tclip service. Returns a URL on standard out for sharing.\n\nFlags:\n", filepath.Base(os.Args[0]))
|
||||
flag.PrintDefaults()
|
||||
os.Exit(2)
|
||||
}
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
[Unit]
|
||||
Description=The Infinipaste service
|
||||
Documentation=https://github.com/tailscale-dev/infinipaste
|
||||
Description=The tclip service
|
||||
Documentation=https://github.com/tailscale-dev/tclip
|
||||
|
||||
[Service]
|
||||
DynamicUser=yes
|
||||
StateDirectory=infinipaste
|
||||
Environment=DATA_DIR=/var/lib/private/infinipaste/data
|
||||
StateDirectory=tclip
|
||||
Environment=DATA_DIR=/var/lib/private/tclip/data
|
||||
ExecStart=@web@/bin/web
|
||||
Restart=always
|
||||
RestartSec=30s
|
||||
|
|
Loading…
Reference in a new issue