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
) - Install the cronjob for renewing the certificates as
root
- Set up an alias for root (
alias acme.sh=/usr/lib/acme.sh/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)
apt-get install -y debhelper dh-virtualenv
Build the package using make debian
in the main directory.
Install the resulting package with dpkg -i
or add it to your personal APT repository