update plg
This commit is contained in:
parent
0494a980f3
commit
fb89bc38ad
@ -84,16 +84,16 @@ else
|
|||||||
|
|
||||||
upgradepkg --install-new &plgPATH;/&plgNAME;.txz
|
upgradepkg --install-new &plgPATH;/&plgNAME;.txz
|
||||||
|
|
||||||
|
echo "updating nodejs..."
|
||||||
npm -g update
|
npm -g update
|
||||||
|
echo "installing ungit (takes a minute)"
|
||||||
npm -g install ungit
|
npm -g install ungit
|
||||||
|
|
||||||
#restart event daemon
|
#restart event daemon
|
||||||
<![CDATA[
|
|
||||||
/usr/local/emhttp/plugins/ungit/scripts/stop >/dev/null 2>&1 < /dev/null &
|
|
||||||
sleep 1
|
|
||||||
echo "starting ungit..."
|
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
|
# Cleaning old source files
|
||||||
find &plgPATH;/ -type f -iname "&name;*.txz" ! -iname "*&version;*" -delete
|
find &plgPATH;/ -type f -iname "&name;*.txz" ! -iname "*&version;*" -delete
|
||||||
@ -123,6 +123,9 @@ rm -rf &emhttp;
|
|||||||
rm -f &plgPATH;/*.txz \
|
rm -f &plgPATH;/*.txz \
|
||||||
&plgPATH;/*.md5
|
&plgPATH;/*.md5
|
||||||
|
|
||||||
|
echo "removing ungit..."
|
||||||
|
npm -g uninstall ungit
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "-----------------------------------------------------------"
|
echo "-----------------------------------------------------------"
|
||||||
echo " &name; has been removed."
|
echo " &name; has been removed."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user