33 lines
1011 B
Markdown
33 lines
1011 B
Markdown
# Shell Utilities Installation
|
|
|
|
This repository provides utilities for managing Docker Swarm and other Docker-related tasks. The `install.sh` script can be used to download and install any specified shell script from this repository into `/etc/profile.d/`.
|
|
|
|
## Installation
|
|
|
|
To install a script, run the following command:
|
|
|
|
```bash
|
|
curl -s https://git.nixc.us/colin/shell-utils/raw/branch/main/install.sh | sudo bash -s <script-name>.sh
|
|
```
|
|
|
|
### Example
|
|
|
|
To install the `dockerutils.sh` script using the one-liner:
|
|
|
|
```bash
|
|
curl -s https://git.nixc.us/colin/shell-utils/raw/branch/main/install.sh | sudo bash -s dockerutils.sh
|
|
```
|
|
|
|
## Generating SHA-256 Hashes for Shell Scripts
|
|
|
|
The `sum.sh` script in this repository generates SHA-256 hashes for all `.sh` files in the `src` directory and saves them as `.sha256` files.
|
|
|
|
### Usage
|
|
|
|
Run the following command to execute the script:
|
|
|
|
```bash
|
|
./sum.sh
|
|
```
|
|
|
|
The hashes will be saved in corresponding `.sha256` files next to each `.sh` file in the `src` directory. |