Browse Source

Fixed repo writing debian

bugfixes
gau1991 10 years ago
parent
commit
c5c93a19de
  1. 2
      ee/core/apt_repo.py
  2. 3
      ee/core/variables.py

2
ee/core/apt_repo.py

@ -20,10 +20,12 @@ class EERepo():
if not os.path.isfile(repo_file_path):
with open(repo_file_path, "a") as repofile:
repofile.write(repo_url)
repofile.write('\n')
repofile.close()
elif repo_url not in open(repo_file_path).read():
with open(repo_file_path, "a") as repofile:
repofile.write(repo_url)
repofile.write('\n')
repofile.close()
return True
except IOError as e:

3
ee/core/variables.py

@ -67,10 +67,11 @@ class EEVariables():
# Nginx repo and packages
if ee_platform_distro == 'Ubuntu':
ee_nginx_repo = "ppa:rtcamp/nginx"
ee_nginx = ["nginx-custom"]
elif ee_platform_distro == 'debian':
ee_nginx_repo = ("deb http://packages.dotdeb.org {codename} all"
.format(codename=ee_platform_codename))
ee_nginx = ["nginx-custom"]
ee_nginx = ["nginx-full"]
# PHP repo and packages
if ee_platform_distro == 'Ubuntu':

Loading…
Cancel
Save