From b396a1592b27f49bef69e99ea7128c075b088354 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Wed, 25 May 2022 00:43:08 +0400 Subject: [PATCH] Added logrotate file to un/install in Makefile. --- Makefile | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index ceb9deb..82ee7ac 100755 --- a/Makefile +++ b/Makefile @@ -25,6 +25,7 @@ install: install -Dm 0755 bin/${TARGET} ${DESTDIR}usr/bin/${TARGET} install -Dm 0755 bin/${TARGET}-clean ${DESTDIR}usr/bin/${TARGET}-clean install -Dm 0644 configs/config.yaml ${DESTDIR}etc/dwelling/upload.yaml + install -Dm 0644 configs/logrotate ${DESTDIR}etc/logrotate.d/${TARGET} install -Dm 0644 LICENSE ${DESTDIR}usr/share/licenses/${TARGET}/LICENSE install -Dm 0644 init/systemd/${TARGET}.service ${DESTDIR}${SYSDDIR}/${TARGET}.service @@ -35,15 +36,10 @@ install: install -Dm 0755 -d ${DESTDIR}var/log/dwelling-upload -stop-service: - ${SYSCTL} stop ${TARGET}.service - ${SYSCTL} stop ${TARGET}-clean.timer - ${SYSCTL} disable ${TARGET}.service - ${SYSCTL} disable ${TARGET}-clean.timer - uninstall: rm ${DESTDIR}usr/bin/${TARGET} rm ${DESTDIR}usr/bin/${TARGET}-clean + rm ${DESTDIR}etc/logrotate.d/${TARGET} rm ${DESTDIR}usr/share/licenses/${TARGET}/LICENSE rm ${DESTDIR}${SYSDDIR}/${TARGET}.service