diff options
-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. |