Author: ks156
Date: 2009-03-18 16:45:02 +0100 (Wed, 18 Mar 2009)
New Revision: 4140

Modified:
   
software_suite_v2/tuxware/installers/unix/branches/refactoring/software_updater/tux_software_updater.py
Log:
* Forgot to grant the permission to restart the server


Modified: 
software_suite_v2/tuxware/installers/unix/branches/refactoring/software_updater/tux_software_updater.py
===================================================================
--- 
software_suite_v2/tuxware/installers/unix/branches/refactoring/software_updater/tux_software_updater.py
     2009-03-18 15:19:08 UTC (rev 4139)
+++ 
software_suite_v2/tuxware/installers/unix/branches/refactoring/software_updater/tux_software_updater.py
     2009-03-18 15:45:02 UTC (rev 4140)
@@ -135,8 +135,7 @@
 
             
             
-def __updateSystem(data, toInstall, toRemove, processToKillList,
-        processToRelaunchList):
+def __updateSystem(data, toInstall, toRemove, processToKillList, 
processToRelaunchList):
     """__updateSystem
     This function install, update or remove the applications from the server.
     It also kill the process specified before updating the system.
@@ -145,6 +144,7 @@
     @param toRemove : A list containing the files to uninstall
     @param processToKillList : The list of the process to kill before uptdating
     """
+
     # Kill the services
     for service in processToKillList:
         os.system("%s %s"%(GRANT,service))
@@ -197,8 +197,9 @@
                 os.system("cd %s && /bin/bash uninstall.sh"%dest)
                 if os.path.isdir(dest):
                     RMDirs(dest)
+
     for service in processToRelaunchList:
-        os.system("%s"%service)
+        os.system("%s %s"%(GRANT, service))
 
     iuuid = commands.getoutput("uuidgen")
     __updateConfFile("IUUID=", iuuid)
@@ -306,7 +307,7 @@
     
     if  __isSomethingToUpdate(toInstall):
         __grantPrivilege()
-        __updateSystem(data, toInstall, toRemove, processToKillList,
+        __updateSystem(data, toInstall, toRemove, processToKillList, \
                 processToRelaunchList)
 
     print "Press any key to exit"


------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to