4 Commits
Author SHA1 Message Date
agboola 19c931abb0 get_os_type function updated
minor changes to awk command to determin os-release type
change redhat to rhel in function
2025-07-16 15:14:32 +01:00
agboola bcf6afad42 Update README.md 2025-07-16 15:08:49 +01:00
agboola f7a20ac053 Update README.md 2025-07-16 15:08:14 +01:00
agboola 13613ab6d5 Merge pull request 'Major Changes to Script - 20250716' (#1) from patch-1 into main
Reviewed-on: #1
2025-07-16 15:02:50 +01:00
2 changed files with 15 additions and 3 deletions
+13 -1
View File
@@ -1,3 +1,15 @@
# lego_acme_wrapper_script # lego_acme_wrapper_script
wrapper script for lego acme wrapper script for lego acme
### Features
- Issue certificates
- Revoke certificates
- Check status
- Install Web-Servers (Nginx, HAProxy, Apache)
- Update Lego
### Todo
- Auto create default conf file for issued certificates in Nginx (Only well conversant with Nginx)
+2 -2
View File
@@ -220,14 +220,14 @@ get_system_information() {
get_os_type() { get_os_type() {
#get OSTYPE - modify to know defualt package name to use for installation #get OSTYPE - modify to know defualt package name to use for installation
os_type=$(awk -F'=' '/ID_LIKE/ {print $2}' /etc/os-release | awk -F'"' '{print $2}') os_type=$(awk -F'=' '/^ID/ {print $2}' /etc/os-release')
if [[ $os_type == *"debian"* ]]; then if [[ $os_type == *"debian"* ]]; then
install_cmd="apt" install_cmd="apt"
elif [[ $os_type == *"ubuntu"* ]]; then elif [[ $os_type == *"ubuntu"* ]]; then
install_cmd="apt" install_cmd="apt"
elif [[ $os_type == *"almalinux"* ]]; then elif [[ $os_type == *"almalinux"* ]]; then
install_cmd="yum" install_cmd="yum"
elif [[ $os_type == *"redhat"* ]]; then elif [[ $os_type == *"rhel"* ]]; then
install_cmd="yum" install_cmd="yum"
elif [[ $os_type == *"centos"* ]]; then elif [[ $os_type == *"centos"* ]]; then
install_cmd="yum" install_cmd="yum"