Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
19c931abb0 | ||
|
|
bcf6afad42 | ||
|
|
f7a20ac053 | ||
|
|
13613ab6d5 |
@@ -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
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user