From 3b00718e592b9c63ce2f6e14d3a60c30139e0937 Mon Sep 17 00:00:00 2001 From: "John \"Elwin\" Edwards" Date: Thu, 14 Jan 2016 21:30:14 -0500 Subject: [PATCH] Add an uninstall target to the Makefile. Also a fix to the install target, and the initscript. --- Makefile | 9 +++++++++ initscript | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 130794a..8b57bf3 100644 --- a/Makefile +++ b/Makefile @@ -20,5 +20,14 @@ install: all cp sqlickrypt dglwatcher ${CHROOT}/bin for LIB in `ldd ./sqlickrypt | awk '$$1 ~ "^/" {print $$1}; $$3 ~ "^/" {print $$3}'`; do mkdir -p ${CHROOT}`dirname $$LIB`; cp $$LIB ${CHROOT}$$LIB; done cp rlgwebd rlgwebd-stop ${BINDIR} + mkdir -p ${CHROOT}/var/www cp ${WEBASSETS} ${CHROOT}/var/www cp rlgwebd.service /usr/lib/systemd/system + +# Libraries are not removed. Something else might be using them. +uninstall: + rm -rf ${CHROOT}/var/www + rm -f ${CHROOT}/bin/sqlickrypt + rm -f ${CHROOT}/bin/dglwatcher + rm -f ${BINDIR}/rlgwebd ${BINDIR}/rlgwebd-stop + rm -f /usr/lib/systemd/system/rlgwebd.service diff --git a/initscript b/initscript index d2696a5..5b311b9 100644 --- a/initscript +++ b/initscript @@ -3,7 +3,7 @@ NODE_PATH=/usr/lib/node_modules LOGFILE=/var/log/rlgwebd.log CTLSOCKET=/var/run/rlgwebd.sock -RLGWEBDJS=./rlgwebd +RLGWEBDJS=/usr/local/bin/rlgwebd export NODE_PATH