aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSlack Coder <slackcoder@server.ky>2024-04-05 07:09:26 -0500
committerSlack Coder <slackcoder@server.ky>2024-04-05 07:10:03 -0500
commit65032081535a904654cb8f359de5d7dbce746f5a (patch)
tree63a8df7b92ff86b9f3e5daf3e691a0116f5dce0b
parent6726b32cc78615f86f1c92eafd38f9f21a5e8351 (diff)
downloadslack-autoupdate-master.tar.xz
README: Improve instructions for custom downloadsHEADmaster
Be clear about where to write custom code.
-rw-r--r--README.md9
1 files changed, 6 insertions, 3 deletions
diff --git a/README.md b/README.md
index 3e5fda6..aaec756 100644
--- a/README.md
+++ b/README.md
@@ -110,15 +110,18 @@ chmod +x /usr/local/sbin/install-kernel
### Customizing Update Downloads
-You can add a section to the [script](src/slack-autoupdate) to pull updates
-using different tools or sources. The sections use the following structure,
-and some examples are provided in the [recipes](src/recipes) directory.
+You can add a section to the [cron script](./src/slack-autoupdate) to pull
+updates using different tools or sources. The sections use the following
+structure. Place the code within the 'if-then' block just after the 'exec'.
+Examples may be found in the [recipes](./src/recipes) directory.
```
if ! OUTPUT="$(
# Redirect error output to standard output.
exec 2>&1
+ # Your update code goes here.
+ #
# Download updates into $STAGING_DIR.
#
# On failure the command output is appended to the error file.