ftp fix for ubuntu

This commit is contained in:
usmannasir
2018-11-08 12:11:42 +05:00
parent 3a30cced3d
commit e6d9d82dd5
6 changed files with 48 additions and 20 deletions

View File

@@ -61,12 +61,15 @@ class ApplicationInstaller(multi.Thread):
def installGit(self):
try:
if os.path.exists("/etc/lsb-release"):
command = 'apt -y install git'
subprocess.call(shlex.split(command))
else:
command = 'sudo yum -y install http://repo.iotti.biz/CentOS/7/noarch/lux-release-7-1.noarch.rpm'
subprocess.call(shlex.split(command))
command = 'sudo yum -y install http://repo.iotti.biz/CentOS/7/noarch/lux-release-7-1.noarch.rpm'
subprocess.call(shlex.split(command))
command = 'sudo yum install git -y'
subprocess.call(shlex.split(command))
command = 'sudo yum install git -y'
subprocess.call(shlex.split(command))
except BaseException, msg:
logging.writeToFile( str(msg) + ' [ApplicationInstaller.installGit]')