mirror of
https://github.com/chenasraf/snpr.git
synced 2026-05-18 01:39:01 +00:00
Remove SSL cert renewal script (#486)
Moved to https://github.com/opensnp/opensnp.org-docker
This commit is contained in:
@@ -1,28 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo 'Cloning dehydrated...'
|
||||
cd /home
|
||||
git clone https://github.com/lukas2511/dehydrated.git --branch=v0.4.0 --depth=1
|
||||
cd dehydrated
|
||||
|
||||
cp docs/examples/config config
|
||||
mkdir -p /home/app/snpr/public/.well-known/acme-challenge
|
||||
|
||||
# by default, WELLKNOWN is commented out, so just set the variable
|
||||
echo 'WELLKNOWN=/home/app/snpr/public/.well-known/acme-challenge' >> config
|
||||
|
||||
echo 'opensnp.org www.opensnp.org' > domains.txt
|
||||
|
||||
echo 'Starting dehydrated...'
|
||||
|
||||
./dehydrated --cron --accept-terms
|
||||
|
||||
|
||||
echo 'Done, now copying keys'
|
||||
cp /etc/ssl/private/opensnp.org.key /etc/ssl/private/opensnp.org.key.old
|
||||
cp /home/dehydrated/certs/opensnp.org/privkey.pem /etc/ssl/private/opensnp.org.key
|
||||
cp /etc/ssl/certs/opensnp.org.crt /etc/ssl/certs/opensnp.org.crt.old
|
||||
cp /home/dehydrated/certs/opensnp.org/fullchain.pem /etc/ssl/certs/opensnp.org.crt
|
||||
|
||||
service nginx restart
|
||||
|
||||
@@ -32,9 +32,3 @@ end
|
||||
every :week do
|
||||
rake 'recommender:update_all'
|
||||
end
|
||||
|
||||
# The let's encrypt updater stops if the cert is younger than 30 days.
|
||||
# it's valid for 90 days, so let's ask for the middle.
|
||||
every 60.days do
|
||||
command '/home/app/snpr/bin/ssl_cert.sh'
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user