Add an uninstall target to the Makefile.
Also a fix to the install target, and the initscript.
This commit is contained in:
parent
6457f18b36
commit
3b00718e59
2 changed files with 10 additions and 1 deletions
9
Makefile
9
Makefile
|
|
@ -20,5 +20,14 @@ install: all
|
||||||
cp sqlickrypt dglwatcher ${CHROOT}/bin
|
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
|
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}
|
cp rlgwebd rlgwebd-stop ${BINDIR}
|
||||||
|
mkdir -p ${CHROOT}/var/www
|
||||||
cp ${WEBASSETS} ${CHROOT}/var/www
|
cp ${WEBASSETS} ${CHROOT}/var/www
|
||||||
cp rlgwebd.service /usr/lib/systemd/system
|
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
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
NODE_PATH=/usr/lib/node_modules
|
NODE_PATH=/usr/lib/node_modules
|
||||||
LOGFILE=/var/log/rlgwebd.log
|
LOGFILE=/var/log/rlgwebd.log
|
||||||
CTLSOCKET=/var/run/rlgwebd.sock
|
CTLSOCKET=/var/run/rlgwebd.sock
|
||||||
RLGWEBDJS=./rlgwebd
|
RLGWEBDJS=/usr/local/bin/rlgwebd
|
||||||
|
|
||||||
export NODE_PATH
|
export NODE_PATH
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue