@@ -32,9 +32,6 @@ elif os_is_centos; then
32
32
fi
33
33
```
34
34
35
-
36
-
37
-
38
35
## Install
39
36
40
37
The 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
74
71
sudo chown -R " my-os-username:my-os-group" /opt/gruntwork/bash-commons
75
72
```
76
73
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
+
77
91
78
92
79
93
# # Importing modules
@@ -115,6 +129,9 @@ Here's an overview of the modules available in `bash-commons`:
115
129
logic, whereas all the direct calls to the AWS CLI and EC2 metadata endpoints are delegated to `aws.sh` to make unit
116
130
testing easier.
117
131
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
+
118
135
* `file.sh`: A collection of helpers for working with files, such as checking if a file exists or contains certain text.
119
136
120
137
* `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`:
125
142
126
143
* `string.sh`: A collection of string manipulation functions, such as checking if a string contains specific text,
127
144
stripping prefixes, and stripping suffixes.
128
-
129
-
145
+
130
146
131
147
132
148
## Coding principles
0 commit comments