diff --git a/debian/freedombox.maintscript b/debian/freedombox.maintscript index 0342fe9a3..c7439b533 100644 --- a/debian/freedombox.maintscript +++ b/debian/freedombox.maintscript @@ -113,3 +113,4 @@ rm_conffile /etc/ikiwiki/plinth-blog.setup 23.10~ rm_conffile /etc/ikiwiki/plinth-wiki.setup 23.10~ rm_conffile /etc/apache2/conf-available/ikiwiki-plinth.conf 23.10~ rm_conffile /etc/apache2/conf-available/janus-freedombox.conf 23.10~ +rm_conffile /etc/letsencrypt/renewal-hooks/deploy/50-freedombox 23.10~ diff --git a/plinth/modules/letsencrypt/__init__.py b/plinth/modules/letsencrypt/__init__.py index 3718e67c9..d3eef5a3b 100644 --- a/plinth/modules/letsencrypt/__init__.py +++ b/plinth/modules/letsencrypt/__init__.py @@ -9,6 +9,7 @@ from django.utils.translation import gettext_lazy as _ from plinth import app as app_module from plinth import cfg, menu +from plinth.config import DropinConfigs from plinth.modules import names from plinth.modules.apache.components import diagnose_url from plinth.modules.backups.components import BackupRestore @@ -44,7 +45,7 @@ class LetsEncryptApp(app_module.App): app_id = 'letsencrypt' - _version = 3 + _version = 4 can_be_disabled = False @@ -69,6 +70,11 @@ class LetsEncryptApp(app_module.App): packages = Packages('packages-letsencrypt', ['certbot']) self.add(packages) + dropin_configs = DropinConfigs('dropin-configs-letsencrypt', [ + '/etc/letsencrypt/renewal-hooks/deploy/50-freedombox', + ]) + self.add(dropin_configs) + backup_restore = BackupRestore('backup-restore-letsencrypt', **manifest.backup) self.add(backup_restore) diff --git a/plinth/modules/letsencrypt/data/etc/letsencrypt/renewal-hooks/deploy/50-freedombox b/plinth/modules/letsencrypt/data/usr/share/freedombox/etc/letsencrypt/renewal-hooks/deploy/50-freedombox similarity index 100% rename from plinth/modules/letsencrypt/data/etc/letsencrypt/renewal-hooks/deploy/50-freedombox rename to plinth/modules/letsencrypt/data/usr/share/freedombox/etc/letsencrypt/renewal-hooks/deploy/50-freedombox