@@ -32,9 +32,6 @@ elif os_is_centos; then
3232fi
3333```
3434
35-
36-
37-
3835## Install
3936
4037The first step is to download the code onto your computer.
@@ -74,6 +71,23 @@ cp -r bash-commons/modules/bash-commons/src /opt/gruntwork/bash-commons
7471sudo chown -R " my-os-username:my-os-group" /opt/gruntwork/bash-commons
7572```
7673
74+ #### Example of ` dynamic-ubuntu-wait.sh ` usage:
75+
76+ You can use the ` dynamic-ubuntu-wait.sh ` command after you [ install bash-commons] ( #install ) :
77+
78+ ```
79+ bash /opt/gruntwork/bash-commons/dynamic-ubuntu-wait.sh
80+ ```
81+
82+ Alternatively, you can call the script without installing by curling it during your existing provisioning/automated installation process:
83+
84+ ``` bash
85+ curl -LsS https://raw.githubusercontent.com/gruntwork-io/bash-commons/[VERSION]/modules/bash-commons/src/dynamic-ubuntu-wait.sh | bash`
86+ ` ` `
87+
88+ Where ` [VERSION]` could be: ` v0.0.3` . The latest release can be found [here](https://github.com/gruntwork-io/bash-commons/releases/latest)
89+
90+
7791
7892
7993# # Importing modules
@@ -115,6 +129,9 @@ Here's an overview of the modules available in `bash-commons`:
115129 logic, whereas all the direct calls to the AWS CLI and EC2 metadata endpoints are delegated to `aws.sh` to make unit
116130 testing easier.
117131
132+ * `dynamic-ubuntu-wait.sh`: A script that dynamically waits for Ubuntu automatic update mechanism to
133+ release all locks so that `apt-get` may run without errors.
134+
118135* `file.sh`: A collection of helpers for working with files, such as checking if a file exists or contains certain text.
119136
120137* `log.sh`: A collection of logging helpers that write logs to `stderr` with log levels (INFO, WARN, ERROR) and
@@ -125,8 +142,7 @@ Here's an overview of the modules available in `bash-commons`:
125142
126143* `string.sh`: A collection of string manipulation functions, such as checking if a string contains specific text,
127144 stripping prefixes, and stripping suffixes.
128-
129-
145+
130146
131147
132148## Coding principles
0 commit comments