Browse Source

added ac.sh to bin

root 3 months ago
parent
commit
193f6bbf23
2 changed files with 13 additions and 0 deletions
  1. 1
    0
      .gitignore
  2. 12
    0
      bin/ac.sh

+ 1
- 0
.gitignore View File

@@ -2,6 +2,7 @@
2 2
 
3 3
 !bin
4 4
 #!bin/**
5
+!bin/ac.sh
5 6
 !bin/alpine.sh
6 7
 !bin/arch.sh
7 8
 !bin/artix.s!bin/alpine.sh

+ 12
- 0
bin/ac.sh View File

@@ -0,0 +1,12 @@
1
+#!/bin/bash                                                                                                                                                                      
2
+
3
+acme.sh --cron --force --home /root/.acme.sh
4
+
5
+for host in $(ls /etc/acme | tr '\n' ' '); do
6
+    echo "Creating .pem File for $host: /etc/acme/$host/$host.pem"
7
+    cat /etc/acme/$host/$host.key > /etc/acme/$host/$host.pem
8
+    cat /etc/acme/$host/fullchain.cer >> /etc/acme/$host/$host.pem
9
+done
10
+
11
+/etc/init.d/lighttpd restart
12
+

Loading…
Cancel
Save