Browse Source

Fixed repo path in Debian

bugfixes
gau1991 10 years ago
parent
commit
c172dfa7cf
  1. 4
      ee/cli/plugins/stack_upgrade.py
  2. 3
      ee/core/apt_repo.py

4
ee/cli/plugins/stack_upgrade.py

@ -55,12 +55,12 @@ class EEStackUpgradeController(CementBaseController):
if EEVariables.ee_platform_distro == "Ubuntu":
if not os.path.isfile("/etc/apt/sources.list.d/"
"ondrej-php5-trusty.list"):
Log.error("Unable to find PHP 5.5")
Log.error(self, "Unable to find PHP 5.5")
else:
if not(os.path.isfile(EEVariables.ee_repo_file_path) and
EEFileUtils.grep(self, EEVariables.ee_repo_file_path,
"php55")):
Log.error("Unable to find PHP 5.5")
Log.error(self, "Unable to find PHP 5.5")
Log.info(self, "During PHP update process non nginx-cached"
" parts of your site may remain down")

3
ee/core/apt_repo.py

@ -1,6 +1,7 @@
"""EasyEngine packages repository operations"""
from ee.core.shellexec import EEShellExec
from ee.core.variables import EEVariables
from ee.core.logging import Log
import os
@ -70,7 +71,7 @@ class EERepo():
+ EEVariables().ee_repo_file)
try:
repofile = open(path_to_file, "w+")
repofile = open(repo_file_path, "w+")
repofile.write(repofile.read().replace(repo_url, ""))
repofile.close()
except IOError as e:

Loading…
Cancel
Save