Added logrotate file to un/install in Makefile.
This commit is contained in:
parent
d995c26827
commit
b396a1592b
8
Makefile
8
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
|
||||
|
Loading…
Reference in New Issue
Block a user