From fb89bc38ad2bf033ef6438476328b9e7c8ad8630 Mon Sep 17 00:00:00 2001 From: dmacias72 Date: Sun, 6 Nov 2016 15:05:52 -0700 Subject: [PATCH] update plg --- plugins/ungit.plg | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/plugins/ungit.plg b/plugins/ungit.plg index e1b7489c..851dd8e4 100644 --- a/plugins/ungit.plg +++ b/plugins/ungit.plg @@ -84,16 +84,16 @@ else upgradepkg --install-new &plgPATH;/&plgNAME;.txz + echo "updating nodejs..." npm -g update + echo "installing ungit (takes a minute)" npm -g install ungit #restart event daemon - /dev/null 2>&1 < /dev/null & - sleep 1 echo "starting ungit..." - setsid /usr/local/emhttp/plugins/ungit/scripts/start >/dev/null 2>&1 < /dev/null & - ]]> + at -M -f &emhttp;/scripts/stop now 2>/dev/null + sleep 1 + at -M -f &emhttp;/scripts/start now 2>/dev/null # Cleaning old source files find &plgPATH;/ -type f -iname "&name;*.txz" ! -iname "*&version;*" -delete @@ -123,6 +123,9 @@ rm -rf &emhttp; rm -f &plgPATH;/*.txz \ &plgPATH;/*.md5 +echo "removing ungit..." +npm -g uninstall ungit + echo "" echo "-----------------------------------------------------------" echo " &name; has been removed."