Author: Paul_R
Date: 2008-09-18 15:15:35 +0200 (Thu, 18 Sep 2008)
New Revision: 1905

Modified:
   software_suite_v2/tuxware/installers/unix/trunk/build_deps/common/postinst
   software_suite_v2/tuxware/installers/unix/trunk/build_deps/common/preinst
Log:
* preinst : typo
* postinst : Added a test to know the current user, and update automatically
  the gadgets and CC if the user is not the root (diff between gdebi and dpkg)


Modified: 
software_suite_v2/tuxware/installers/unix/trunk/build_deps/common/postinst
===================================================================
--- software_suite_v2/tuxware/installers/unix/trunk/build_deps/common/postinst  
2008-09-18 13:14:30 UTC (rev 1904)
+++ software_suite_v2/tuxware/installers/unix/trunk/build_deps/common/postinst  
2008-09-18 13:15:35 UTC (rev 1905)
@@ -7,4 +7,11 @@
 update-rc.d tuxhttpserver defaults
 /etc/init.d/tuxhttpserver start
 chmod 777 /opt/tuxdroid/controlcenter
-gksu -u $USER /opt/tuxdroid/misc/tux_updater
+if [ $USER == "root" ]; then
+    echo ""
+    echo 
"================================================================================"
+    echo "Please run 'tux_updater' as normal user to download the last control 
"
+    echo "center, gadgets and tools."
+else
+    gksu -u $USER /opt/tuxdroid/misc/tux_updater
+fi

Modified: 
software_suite_v2/tuxware/installers/unix/trunk/build_deps/common/preinst
===================================================================
--- software_suite_v2/tuxware/installers/unix/trunk/build_deps/common/preinst   
2008-09-18 13:14:30 UTC (rev 1904)
+++ software_suite_v2/tuxware/installers/unix/trunk/build_deps/common/preinst   
2008-09-18 13:15:35 UTC (rev 1905)
@@ -1,3 +1,3 @@
-#!/bin/bash" >$PREINST
+#!/bin/bash
 if [ -e /etc/init.d/tuxhttpserver ]; then
 /etc/init.d/tuxhttpserver stop; fi


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to