added ac.sh to bin
This commit is contained in:
parent
22815a6f9f
commit
193f6bbf23
2 changed files with 13 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
!bin
|
!bin
|
||||||
#!bin/**
|
#!bin/**
|
||||||
|
!bin/ac.sh
|
||||||
!bin/alpine.sh
|
!bin/alpine.sh
|
||||||
!bin/arch.sh
|
!bin/arch.sh
|
||||||
!bin/artix.s!bin/alpine.sh
|
!bin/artix.s!bin/alpine.sh
|
||||||
|
|
|
||||||
12
bin/ac.sh
Executable file
12
bin/ac.sh
Executable file
|
|
@ -0,0 +1,12 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
acme.sh --cron --force --home /root/.acme.sh
|
||||||
|
|
||||||
|
for host in $(ls /etc/acme | tr '\n' ' '); do
|
||||||
|
echo "Creating .pem File for $host: /etc/acme/$host/$host.pem"
|
||||||
|
cat /etc/acme/$host/$host.key > /etc/acme/$host/$host.pem
|
||||||
|
cat /etc/acme/$host/fullchain.cer >> /etc/acme/$host/$host.pem
|
||||||
|
done
|
||||||
|
|
||||||
|
/etc/init.d/lighttpd restart
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue