From d8b747e315cf6f5009ddb2aff39fededd9fc430f Mon Sep 17 00:00:00 2001 From: samuel Date: Sun, 15 Mar 2026 16:43:26 +0100 Subject: [PATCH] fix: make install rights --- Makefile | 4 ++-- README.md | 13 +++++++------ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 0a88da5..23b3b31 100644 --- a/Makefile +++ b/Makefile @@ -73,8 +73,8 @@ install: ## Install files into rpm dest (requires env var DESTDIR) printf "[CRITICAL] Missing env var DESTDIR\n[CRITICAL] This command is designed to be called by rpmbuild only!\n" 1>&2; \ exit 1; \ fi - install --directory $(DESTDIR)$(RPM_SYSCONFDIR)/nginx/conf.d $(DESTDIR)$(RPM_SYSCONFDIR)/certbot $(DESTDIR)$(RPM_UNITDIR) $(DESTDIR)$(RPM_SBINDIR) - install --mode=755 --target-directory=$(DESTDIR)$(RPM_SYSCONFDIR)/nginx/conf.d files/nginx/0_security.conf files/nginx/z_default.conf + install --mode=755 --directory $(DESTDIR)$(RPM_SYSCONFDIR)/nginx/conf.d $(DESTDIR)$(RPM_SYSCONFDIR)/certbot $(DESTDIR)$(RPM_UNITDIR) $(DESTDIR)$(RPM_SBINDIR) + install --mode=644 --target-directory=$(DESTDIR)$(RPM_SYSCONFDIR)/nginx/conf.d files/nginx/0_security.conf files/nginx/z_default.conf install --mode=600 --target-directory=$(DESTDIR)$(RPM_SYSCONFDIR)/certbot files/certbot/ovh.ini install --mode=644 --target-directory=$(DESTDIR)$(RPM_UNITDIR) files/systemd/certbot-renew.service files/systemd/certbot-renew.timer install --mode=755 --target-directory=$(DESTDIR)$(RPM_SBINDIR) files/sbin/certbot_renew diff --git a/README.md b/README.md index 8d49312..4b71dd5 100644 --- a/README.md +++ b/README.md @@ -48,15 +48,16 @@ A `Makefile` is integrated to let you run some basic commands. Two workflows are set up. - Continuous Integration: - - triggered by each push on branch `main` - - runs shellcheck on script `certbot_renew` - - builds tarball and rpm package to test everything is OK - + - triggered by each push event on branch `main` + - runs shellcheck + - builds tarball + - builds rpm package - Continuous Delivery: - - triggered by each tag pushed + - triggered by each tag push event - builds tarball - - builds and uploads rpm package to `Gitea` repository + - builds rpm package + - uploads rpm package to repository # Deployment