diff options
author | Slack Coder <slackcoder@server.ky> | 2024-04-05 07:09:26 -0500 |
---|---|---|
committer | Slack Coder <slackcoder@server.ky> | 2024-04-05 07:10:03 -0500 |
commit | 65032081535a904654cb8f359de5d7dbce746f5a (patch) | |
tree | 63a8df7b92ff86b9f3e5daf3e691a0116f5dce0b | |
parent | 6726b32cc78615f86f1c92eafd38f9f21a5e8351 (diff) | |
download | slack-autoupdate-65032081535a904654cb8f359de5d7dbce746f5a.tar.xz |
README: Improve instructions for custom downloads
Be clear about where to write custom code.
-rw-r--r-- | README.md | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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. |