wok-current rev 24146

ventoy: move log.txt to /tmp
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Nov 18 10:12:29 2021 +0000 (2021-11-18)
parents 0c04a0ffe6d7
children 9c0fdd18095c
files ventoy/receipt ventoy/stuff/TazVentoy.sh
line diff
     1.1 --- a/ventoy/receipt	Wed Nov 17 10:14:59 2021 +0000
     1.2 +++ b/ventoy/receipt	Thu Nov 18 10:12:29 2021 +0000
     1.3 @@ -38,9 +38,10 @@
     1.4  	tar xzf $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES -C $fs/usr/share/
     1.5  	mv $fs/usr/share/ventoy-$VERSION $fs/usr/share/ventoy
     1.6  	rm -f $fs/usr/share/ventoy/VentoyGUI* $fs/usr/share/ventoy/*.exe
     1.7 -	rm -f $fs/usr/share/ventoy/tool/i386/*.qt5 $fs/usr/share/ventoy/tool/i386/*.gtk?
     1.8 +	rm -f $fs/usr/share/ventoy/tool/i386/*.qt? $fs/usr/share/ventoy/tool/i386/*.gtk?
     1.9  	rm -f $fs/usr/share/ventoy/tool/i386/V2DServer*
    1.10  	rm -f $fs/usr/share/ventoy/tool/VentoyGTK.glade
    1.11 +	rm -f $fs/usr/share/ventoy/tool/distro_gui_type.json
    1.12  	rm -f $fs/usr/share/ventoy/VentoyWeb.sh 
    1.13  	rm -rf $fs/usr/share/ventoy/tool/aarch64 
    1.14  	rm -rf $fs/usr/share/ventoy/tool/x86_64 
    1.15 @@ -50,4 +51,5 @@
    1.16  	cp $src/INSTALL/tool/i386/V2DServer $fs/usr/share/ventoy/tool/i386/
    1.17  	chmod +x $fs/usr/share/ventoy/tool/i386/V2DServer
    1.18  	cp $stuff/TazVentoy.sh $fs/usr/share/ventoy/
    1.19 +	ln -s /tmp/ventoy.log $fs/usr/share/ventoy/log.txt
    1.20  }
     2.1 --- a/ventoy/stuff/TazVentoy.sh	Wed Nov 17 10:14:59 2021 +0000
     2.2 +++ b/ventoy/stuff/TazVentoy.sh	Thu Nov 18 10:12:29 2021 +0000
     2.3 @@ -7,14 +7,11 @@
     2.4  [ $(id -u) -ne 0 ] && exec tazbox su $0 $@
     2.5  
     2.6  cd $(dirname $0)
     2.7 -HOST="${1:-127.0.0.1}"
     2.8 -PORT=${2:-24680}
     2.9 -[ $(stat -c %s log.txt) -gt 4096 ] && rm log.txt
    2.10 +HOST="${1:-127.0.0.1}:${2:-24680}"
    2.11 +echo -n > log.txt
    2.12  
    2.13 -PATH=./tool/i386:$PATH
    2.14 -V2DServer "$HOST" "$PORT" &
    2.15 -wID=$!
    2.16 +PATH=./tool/i386:$PATH V2DServer ${HOST/:/ } &
    2.17  sleep 1
    2.18  
    2.19 -tazweb --notoolbar http://$HOST:$PORT/ || browser http://$HOST:$PORT/
    2.20 -kill $wID
    2.21 +tazweb --notoolbar http://$HOST/ || browser http://$HOST/
    2.22 +kill %1