Commit Graph
19 Commits
Author SHA1 Message Date
golderweb 418377395d Prevent useless sleep in first iteration
As the script is normaly already run at nearly random time, the sleep
is unnesseccary before we requested a letsencrypt cert. Also we do not
need to sleep if the cert is still valid long enough.
2017-06-06 18:46:56 +02:00
golderweb 821532cd06 Don't add cert if letsencrypt complains
It makes no sense to call uberspace-add-certificate if letsencrypt
fails
2017-05-26 18:37:21 +02:00
golderweb 8b615e7e35 Make short circuit "not outdated" less complicated 2017-05-26 18:35:15 +02:00
golderweb adbed8b212 Improvement: inifilename not depend on domain var
Make letsencrypt loading inifiles detected in loop instead of
constructing possibly wrong path with domain var
2017-02-10 23:44:18 +01:00
golderweb 31d1958079 Bugfix: Remove C&P errors 2017-02-10 23:42:19 +01:00
golderweb fe3d2941bf Bugfix: Remove missplaced quotes
Remove quotes preventing bash expansion of home dir
2017-02-10 22:20:27 +01:00
golderweb 2ab1852eb8 Read domain from inifile
Read the domain from inifile property domains instead of using filename
As letsencrypt uses this value, missconfigurations should be nearly
impossible this way
2017-02-10 17:02:09 +01:00
golderweb 0bc92aa2ee Conditionally set LECONFIGDIR
To be able to set LECONFIGDIR in env var for tests or different setups
2017-02-10 16:58:12 +01:00
golderweb 3b85863526 Fix missplaced quotes 2017-02-10 16:54:51 +01:00
golderweb c0e5b48a1f Add copyright information
Add file header with copyright and licence information.
Add GPLv3 licence full text.
2017-02-09 21:11:58 +01:00
golderweb e6a0da5c00 Catch missing LECONFIGDIR
Threw error if the config dir is not already existing.
2017-02-09 21:04:07 +01:00
golderweb 46a81e2feb Always use path to LECONFIGDIR from variable
Replace all hardcoded occurences of letsencrypt config dir path
with variable to reduce possibility of future mistakes.
2017-02-09 20:58:17 +01:00
golderweb f909a5c983 Make script indipendent from working dir
Use absolute path to LECONFIGDIR instead of searching inifiles in
currend working dir.
Modify striping rules to match new filenames with full path.
2017-02-09 20:54:41 +01:00
golderweb c0e3440f1d Use random sleep again
As we now run the same part multiple times, sleep randomly in each loop
cycle. To be a bit nice to servers and letsencrypt.
2017-02-09 20:46:19 +01:00
golderweb f989e9f9a2 Fix missing indentation
Add Missing indetation after addition of for-loop
2017-02-09 20:44:09 +01:00
golderweb a8b11d9830 Add missing documenting comment
Improve documentation of script
2017-02-09 20:43:04 +01:00
golderweb ea899521e7 Loop over all existing domain config files
To get all domains configured for letsencrypt we loop over all
configfiles matching cli-*.ini. Then strip out the domain.
2017-02-09 20:39:42 +01:00
golderweb 840573ffd3 Use a per domain config file
To be able to use multiple different domains/certificates in one
uberspace. Call per each domain with domain=domain.tld environment
variable set.
2017-02-09 20:14:56 +01:00
golderweb 037ce19154 Initial Version as in Uberspace Wiki
https://wiki.uberspace.de/webserver:https#automatisieren_von_let_s_encrypt
2017-02-09 20:12:26 +01:00