From e0b88642feb82be040316f548bb34be52eca5612 Mon Sep 17 00:00:00 2001 From: Yue Zhang Date: Sun, 6 Sep 2015 15:22:57 +0800 Subject: [PATCH] Update setup command for 2.1 --- remote-scripts/SETUP-INSTALL-PACKAGES.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/remote-scripts/SETUP-INSTALL-PACKAGES.py b/remote-scripts/SETUP-INSTALL-PACKAGES.py index 509c063..fe79ef2 100644 --- a/remote-scripts/SETUP-INSTALL-PACKAGES.py +++ b/remote-scripts/SETUP-INSTALL-PACKAGES.py @@ -160,8 +160,7 @@ def install_waagent_from_github(): #For 2.1, use setup.py to install/uninstall package setup_py = os.path.join(unzipPath, 'setup.py') ExecMultiCmdsLocalSudo([ - "{0} {1} -uninstall".format(python_cmd, setup_py), - "{0} {1} -install".format(python_cmd, setup_py), + "{0} {1} install --register-service --force".format(python_cmd, setup_py), "rm -rf {0}".format(unzipPath)]) return True else: