refactor: finish moving ssh-* scripts to own installers
[webi-installers/.git] / caddy / README.md
index 020ded870793babb8557390f0a7419af29c335b9..d674bc3219471670be08bef825ff77a3d75f4a52 100644 (file)
@@ -5,13 +5,8 @@ tagline: |
   Caddy is a fast, multi-platform web server with automatic HTTPS.
 ---
 
-## Updating `caddy`
-
-```bash
-webi caddy@stable
-```
-
-Use the `@beta` tag for pre-releases, or `@x.y.z` for a specific version.
+To update or switch versions, run `webi caddy@stable` (or `@v2.4`, `@beta`,
+etc).
 
 ## Cheat Sheet
 
@@ -100,7 +95,7 @@ Using a user named `app` to run your services is common industry convention.
 You can use `setcap` to allow Caddy to use privileged ports.
 
 ```bash
-sudo setcap cap_net_bind_service=+ep $(readlink $(command -v caddy))
+sudo setcap cap_net_bind_service=+ep $(readlink -f $(command -v caddy))
 ```
 
 **systemd config**
@@ -118,7 +113,7 @@ Use Serviceman to create a _systemd_ config file.
 
 ```bash
 sudo env PATH="$PATH" \
-    serviceman --system --username $(whoami) --name caddy -- \
+    serviceman add --system --username $(whoami) --name caddy -- \
         caddy run --config ./Caddyfile
 ```
 
@@ -149,7 +144,7 @@ webi serviceman
 Use Serviceman to create a _launchd_ plist file.
 
 ```bash
-serviceman --username $(whoami) --name caddy -- \
+serviceman add --username $(whoami) --name caddy -- \
     caddy run --config ./Caddyfile
 ```
 
@@ -189,7 +184,7 @@ webi.bat serviceman
 Use Serviceman to create a Startup entry in the Windows Registry:
 
 ```bash
-serviceman.exe --name caddy -- \
+serviceman.exe add --name caddy -- \
     caddy run --config ./Caddyfile
 ```