bug fix: remote extra logging from application installer

This commit is contained in:
Usman Nasir
2020-11-10 14:18:07 +05:00
parent cb741771e1
commit 42bdd0378e
3 changed files with 16 additions and 8 deletions

View File

@@ -899,16 +899,23 @@ $parameters = array(
if self.dataLossCheck(finalPath, tempStatusPath) == 0:
raise BaseException('Directory is not empty.')
command = 'composer global require joomlatools/console'
ProcessUtilities.outputExecutioner(command, externalApp, None, self.permPath)
### Decide joomla console path
import getpass
if getpass.getuser() == 'root':
command = 'export COMPOSER_ALLOW_SUPERUSER=1;composer global require joomlatools/console'
ProcessUtilities.outputExecutioner(command, externalApp, None, self.permPath)
joomlaPath = '/root/.config/composer/vendor/bin/joomla'
else:
joomlaPath = '/home/%s/.composer/vendor/bin/joomla' % (self.masterDomain)
command = 'composer global require joomlatools/console'
ProcessUtilities.outputExecutioner(command, externalApp, None, self.permPath)
if ProcessUtilities.decideDistro() == ProcessUtilities.centos or ProcessUtilities.decideDistro() == ProcessUtilities.cent8:
joomlaPath = '/home/%s/.composer/vendor/bin/joomla' % (self.masterDomain)
else:
joomlaPath = '/home/%s/.config/composer/vendor/bin/joomla' % (self.masterDomain)
## Run the install command