Merge pull request #15 from jolheiser/infinipaste

chore: infinipaste -> tclip
This commit is contained in:
Xe Iaso 2023-08-17 11:13:19 -04:00 committed by GitHub
commit 1bab8e2ec9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View file

@ -13,13 +13,13 @@ import (
)
var (
fname = flag.String("n", "", "filename to use for pastes from standard input")
target = flag.String("target", "http://paste", "infinipaste server URL")
fname = flag.String("n", "", "filename to use for pastes from standard input")
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)
}

View file

@ -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