Shell Scripts
As any good sysadmin I developed my own script for some common, repetitive tasks or other needs. Although some are very specific to my needs, setup and environment, they can give you and idea or hint for some issue you have and other scripts have been development with reusability in mind.
Introduction
For my internal deployment processes of these scripts to my systems they are all stored below the subversion path Shell, emulating the standard Linux Filesystem hierarchy and intended to be installed under /usr/local/
, although this should not affect much and doesn't suppose any special requirement.
Also for this reason, as I use this repository for deployment of scripts I use note that some scripts may not be developed by me (so I'm not the author), in that case the proper script code will contain the reference author and license and so…
/usr/local/share/ca-certificates/
, so if you choose to deploy them in bulk as me under /usr/local/
you may be trusting entirely my CA .. you trust me?
Last ChangeLog history
- LDAP locking and photo tools fixes by Marc Franquesa <mark@l3jane.net> (2024/05/02 19:03)
- Autodetect linters by Marc Franquesa <mark@l3jane.net> (2024/04/07 15:02)
- Codelint script enhancements by Marc Franquesa <mark@l3jane.net> (2024/04/06 10:56)
- Fix CUPS backend call by Count Zero <count.zero@l3jane.net> (2024/03/14 08:28)
- API Backends to use Token Authentication by Count Zero <count.zero@l3jane.net> (2024/03/13 17:17)
- Zabbix monitor to support SAN by Count Zero <count.zero@l3jane.net> (2024/03/05 17:14)
- Scripts minor enhancements by Marc Franquesa <mark@l3jane.net> (2024/02/19 23:17)
- Script external package listing by Count Zero <count.zero@l3jane.net> (2024/02/02 14:36)
- Simplify code and some plan on replica checking by Marc Franquesa <mark@l3jane.net> (2024/01/24 07:41)
- Enhanced LDAP replication check by Marc Franquesa <mark@l3jane.net> (2024/01/22 23:20)
- Fix roll import by Count Zero <count.zero@l3jane.net> (2024/01/05 12:12)
- Tab data and fix updates by Marc Franquesa <mark@l3jane.net> (2023/12/06 00:00)
- Record warnings and handle NULLs by Marc Franquesa <mark@l3jane.net> (2023/11/25 16:13)
- Fix NULL handling on roll index by Count Zero <count.zero@l3jane.net> (2023/11/23 16:38)
- Roll indexing enhancements by Marc Franquesa <mark@l3jane.net> (2023/11/22 19:29)
Install
Almost all scripts are self contained, so installing them is as simply as copying the file and give it execution permissions
Requirements
- Although may be portable, they are developed for Bash, so bash is required
- For all common scripting tasks I developed a Shell library which almost all the scripts import (well it sources) the liblady.sh
- Scripts may make use of some external non-standard programs, in those cases a I use require shell function which both documents this requirements and launches an error dynamically when is unable to find it
For the liblady.sh requirement you can either:
- Install it below
/usr/local/lib/
- Copy & paste it at the start of the script
- Include it in your
.profile
or.bashrc
files
Downloads
I usually doesn't provide packaged download, instead I try to keep the development trunk free of bugs, so usable. For big changes I usually use a separated branch to not affect main trunk of development.
In case the software have few changes (either because is stable enough or even because I don't maintain it actively) I provide packaged tarballs.