Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zoic21 committed Sep 8, 2024
1 parent 73b6498 commit 4e91bda
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/class/system.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -740,9 +740,9 @@ public static function checkAndInstall($_packages, $_fix = false, $_foreground =
}
if ($_plugin != '') {
if ($_foreground) {
echo shell_exec('sudo su - debian -c php ' . __DIR__ . '/../php/jeecli.php plugin dependancy_end ' . $_plugin . ' 2>&1');
echo shell_exec('sudo su - www-data -c php ' . __DIR__ . '/../php/jeecli.php plugin dependancy_end ' . $_plugin . ' 2>&1');
} else {
$cmd .= 'sudo su - debian -c php ' . __DIR__ . '/../php/jeecli.php plugin dependancy_end ' . $_plugin . "\n";
$cmd .= 'sudo su - www-data -c php ' . __DIR__ . '/../php/jeecli.php plugin dependancy_end ' . $_plugin . "\n";
$count++;
$cmd .= 'echo ' . $count . ' > ' . $progress_file . "\n";
}
Expand Down Expand Up @@ -845,7 +845,7 @@ public static function installPackage($_type, $_package, $_version = '', $_plugi
}
return 'cd ' . __DIR__ . '/../../' . $_package . ';rm -rf node_modules;' . self::getCmdSudo() . ' yarn install;' . self::getCmdSudo() . ' chown -R www-data:www-data *';
case 'plugin':
return 'sudo su - debian -c php ' . __DIR__ . '/../php/jeecli.php plugin install ' . $_package;
return 'sudo su - www-data -c php ' . __DIR__ . '/../php/jeecli.php plugin install ' . $_package;
case 'composer':
if (strpos($_package, '/') === false) {
return self::getCmdSudo() . ' composer require --no-ansi --no-dev --no-interaction --no-plugins --no-progress --no-scripts --optimize-autoloader ' . $_package;
Expand Down

0 comments on commit 4e91bda

Please sign in to comment.