1
0
Fork 0

Added logrotate file to un/install in Makefile.

This commit is contained in:
Alexander Andreev 2022-05-25 00:43:08 +04:00
parent d995c26827
commit b396a1592b
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F
1 changed files with 2 additions and 6 deletions

View File

@ -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