https://github.com/nkeramov/bash_scripts
Some useful bash scripts
https://github.com/nkeramov/bash_scripts
bash bash-automation bash-script nifi
Last synced: about 2 months ago
JSON representation
Some useful bash scripts
- Host: GitHub
- URL: https://github.com/nkeramov/bash_scripts
- Owner: Nkeramov
- License: mit
- Created: 2023-02-26T16:08:56.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-11-15T23:08:59.000Z (8 months ago)
- Last Synced: 2025-11-16T01:12:24.130Z (8 months ago)
- Topics: bash, bash-automation, bash-script, nifi
- Language: Shell
- Homepage:
- Size: 68.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bash scripts
[](https://www.gnu.org/software/bash/)
[](https://opensource.org/licenses/MIT)
This project contains some useful bash scripts created for making the life easier.
## Description
### nifi_install
Script for install Apache NiFi, NiFi Registry and NiFi toolkit.
Accepts args:
1. the NiFi version to be installed (-v or --version)
2. the NiFi user login (-l or --login)
3. the NiFi user password (-p or --password)
4. the installation dir (-d or -- dir)
Make sure your password is at least 12 characters long.
The version may not be specified, in which case the latest version will be installed.
Adds environment variables:
1. `NIFI_VERSION`
2. `NIFI_HOME`
3. `NIFI_REGISTRY_HOME`
4. `NIFI_TOOLKIT_HOME`
5. `NIFI_BOOTSTRAP_FILE`
6. `NIFI_PROPS_FILE`
7. `NIFI_REGISTRY_PROPS_FILE`
8. `NIFI_TOOLKIT_PROPS_FILE`
9. `NIFI_INPUT`
10. `NIFI_OUTPUT`
Also script adds aliases for commands to start, stop, restart and get status
for NiFi (`NIFI_START`, `NIFI_STOP`, `NIFI_RESTART`, `NIFI_STATUS`) and
NiFi Registry (`NIFI_REGISTRY_START`, `NIFI_REGISTRY_STOP`, `NIFI_REGISTRY_RESTART`, `NIFI_REGISTRY_STATUS`):
Use command to run:
```bash
bash -i ./nifi_install.sh -v 1.23.2 -l admin -p strong_password -d /opt
```
If the specified environment variables or command aliases already exist, they are updated, otherwise they will be created. Does not require root rights.
Running in interactive mode is required to correctly detect existing aliases.
Keep in mind that the minimum password length is 12 characters.
### nifi_setup
Script for apply recommended system settings for Apache NiFi described in [Apache NiFi Development Quickstart](https://en.wikipedia.org/wiki/ARTag). Requires root rights.
### check_java
Script to check if JDK is installed and JAVA_HOME environment variable is correct. Does not require root rights.
If the JAVA_HOME is incorrect, the script will attempt to determine the correct path and offer to save it in environment variables.
### git_config
Script to configure git options such as username, email, credentials and aliases.
### google_drive_download
Script to download files from Google Drive with wget. Arguments file ID and output filename.
### bash_color
Script for formatting text output (setting color, background, style).
## 🚀 Quick start
Most of the files are intended to be placed in ~/bin, which is included in the PATH variable by default in most Unix systems.
Make scripts executable by this command: `chmod +x `.
## 🤝 Contributing
If you want to contribute, please follow these steps:
1. Fork the repository.
2. Create a new branch for your feature or bug fix.
3. Make your changes and commit them.
4. Push to your fork and create a pull request.
## 📝 License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.