Update setup command for 2.1
This commit is contained in:
Родитель
18c85c9983
Коммит
e0b88642fe
|
@ -160,8 +160,7 @@ def install_waagent_from_github():
|
||||||
#For 2.1, use setup.py to install/uninstall package
|
#For 2.1, use setup.py to install/uninstall package
|
||||||
setup_py = os.path.join(unzipPath, 'setup.py')
|
setup_py = os.path.join(unzipPath, 'setup.py')
|
||||||
ExecMultiCmdsLocalSudo([
|
ExecMultiCmdsLocalSudo([
|
||||||
"{0} {1} -uninstall".format(python_cmd, setup_py),
|
"{0} {1} install --register-service --force".format(python_cmd, setup_py),
|
||||||
"{0} {1} -install".format(python_cmd, setup_py),
|
|
||||||
"rm -rf {0}".format(unzipPath)])
|
"rm -rf {0}".format(unzipPath)])
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
|
|
Загрузка…
Ссылка в новой задаче