Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2dd07a703f | |||
| 554e032bd6 | |||
| 6f822f786d |
2
Makefile
2
Makefile
@@ -33,6 +33,6 @@ install:
|
||||
install --target-directory=$(DESTDIR)$(RPM_SYSCONFDIR)/netoik-rp/ conf/ovh.ini
|
||||
install --directory $(DESTDIR)$(RPM_UNITDIR)
|
||||
install --target-directory=$(DESTDIR)$(RPM_UNITDIR)/ services/netoik-rp.service
|
||||
install --directory $(DESTDIR)/certbot
|
||||
install --directory $(DESTDIR)/opt/certbot
|
||||
install --directory $(DESTDIR)$(RPM_SBINDIR)
|
||||
touch $(DESTDIR)$(RPM_SBINDIR)/certbot
|
||||
|
||||
@@ -31,7 +31,7 @@ if [ $1 == 1 ]; then
|
||||
%{_bindir}/env python3 -m venv /opt/certbot
|
||||
/opt/certbot/bin/pip install --upgrade pip certbot certbot-dns-ovh
|
||||
%{_bindir}/env ln --symbolic --force --target-directory %{_sbindir} /opt/certbot/bin/certbot
|
||||
%{_bindir}/env certbot certonly --dns-ovh --dns-ovh-credentials "%{_sysconfdir}/%{name}/ovh.ini" -d "*.netoik.io" -d "*.samuel-campos.fr"
|
||||
%{_bindir}/env certbot certonly --non-interactive --agree-tos --email samuel.campos@netoik.io --dns-ovh --dns-ovh-credentials "%{_sysconfdir}/%{name}/ovh.ini" -d "*.netoik.io" -d "*.samuel-campos.fr"
|
||||
%{_bindir}/env printf "\nAutomatic certbot renew\n0 12 * * * root sleep $((RANDOM % 3600)) && certbot renew -q\n" >> %{_sysconfdir}/crontab
|
||||
fi
|
||||
%{_bindir}/env systemctl disable nginx
|
||||
|
||||
Reference in New Issue
Block a user