This projects helps to package acme.sh as a Debian archive (.deb). acme.sh actually has a pretty good installer (acme.sh --install
) but if you want to use a (personal) APT repository (e.g. with using unattended-upgrades) this could help make it easier to install. Also this could be used to create a package that already holds your personal configuration files.
The resulting package will do the following:
- Install
acme.sh
and all library files (dnsapi/
,deploy/
andnotify
) in/usr/lib/acme.sh
- Install
account.conf
in/etc/acme.sh/account.conf
- Set
/etc/acme.sh/cert
as the location for certificates (via$CERT_HOME
inaccount.conf
) - Install the cronjob for renewing the certificates obtained as
root
- Set up an alias for root (
alias acme.sh=acme.sh --home /etc/acme.sh
)
Change the $PROJECT
and $BRANCH
variables in debian/rules
to make sure you're using the right package. E.g. if you've created your own branch/fork of acme.sh
you can use that here. Also make sure to adapt account-etc.conf
(to be installed in /etc/acme.sh/account.conf
to your needs).
After you've adapted the package update the changelog with dch
(which also determines the version number for this package)
Build the package using debuild
in the main directory.
Install the resulting package with dpkg -i
or add it to your personal APT repository via dput
This packaging is based on the work of Maarten den Braber (mdbraber on github) and we forked it to release a more debian-normalized and up-to-date release of acme.sh, managed by the Octopuce team. Thanks Maarten!